Xen Block Devices Usage tap2:aio
Posted by valqk on
In case of getting max loop devices reached and have already built image of VM and you CAN't restart machine to increase max_loop=XX when loading loop module,
use tap:aio.
Then change the config of vm from file:/ to tap2:tapdisk:aio:/
Something like this:
use tap:aio.
#> apt-get install blktap-dkms blktap-utils
#> modprobe blktap
Then change the config of vm from file:/ to tap2:tapdisk:aio:/
Something like this:
bootloader = '/usr/lib/xen-4.1/bin/pygrub'
vcpus = '1'
memory = '512'
root = '/dev/xvda2 ro'
disk = [
'tap2:tapdisk:aio:/home/xen//domains/virtual.com/disk.img,xvda2,w',
'tap2:tapdisk:aio:/home/xen/domains/virtual.com/swap.img,xvda1,w',
]
name = 'virtual.com'
vif = [ 'ip=192.168.10.100 ,mac=01:06:1A:12:FE:C5' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
Trackbacks
Trackback specific URI for this entryThis link is not meant to be clicked. It contains the trackback URI for this entry. You can use this URI to send ping- & trackbacks from your own blog to this entry. To copy the link, right click and select "Copy Shortcut" in Internet Explorer or "Copy Link Location" in Mozilla.
No Trackbacks
Comments
Display comments as Linear | ThreadedNo comments