xen 4.1.1 + 3.0.0-rc5 dom0 + blktap2
Hi,
I'm currently trying xen 4.1.1 with the 3.0.0-rc5 (heard that it now contains the xen code to run as front or back xen domain).
Everything seems to run fine, except that I am trying since a few hours to mount a .vhd file in the dom0.
What I tried so far:
to create a blank vhd file (this is working):
host# vhd-util create -n /storage/test.vhd -s 20G
Then i try to mount the file in dom0 (as stated in a blktap2 README file) host# tapdisk2 -n vhc:/storage/test.vhd
it fails, returning:
tapdisk2: invalid option -- 'n'
usage: tapdisk2 <-u uuid> <-c control socket>
Then i've tried:
host# tap-ctl list
It returns:
blktap kernel module not installed
Then tried too:
host# xl block-attach 0 tap:vhd:/storage/test.vhd xvda w 0
It does not complain but nothing happens.
Am I getting something wrong about how to do it ? Does the 3.0.0-rc5 kernel is missing something ? (look like there is no blktap module in the kernel tree, but blkback that I enabled, don't know if it's the same)
I have no more ideas about what to try next. Any clue ?
Thanks a lot for your help!
Kind regards,
Sébastien
Quoted 7 lines · Madjik
Hi,
I'm currently trying xen 4.1.1 with the 3.0.0-rc5 (heard that it now contains the xen code to run as front or back xen domain).
Everything seems to run fine, except that I am trying since a few hours to mount a .vhd file in the dom0.
Everything needed to run a guest is upstream but not everything needed to run any guest, if you see what I mean. In particular the upstream kernel contains blkback but not blktap so using a vhd would not be expected to work today.
I'm afraid blktap is unlikely to be accepted upstream as it is. There is a plan to remove the kernel component and have guests communicate directly with the tapdisk process in userspace (via /dev/xen/gtndev et al). There is no real downside to this since everything goes through tapdisk anyway. I don't know how advanced that plan is currently.
With the 4.1 release you might be able to use the qdisk (qemu based backend) to run a VHD but it is known not to perform all that well (and I don't know off-hand how you enable it). Performance is, AIUI, better with the upstream qemu port.
Ian.
Quoted 20 lines · Ian Campbell
Quoted 7 lines · Madjik
Hi,
I'm currently trying xen 4.1.1 with the 3.0.0-rc5 (heard that it now contains the xen code to run as front or back xen domain).
Everything seems to run fine, except that I am trying since a few hours to mount a .vhd file in the dom0.
Everything needed to run a guest is upstream but not everything needed to run any guest, if you see what I mean. In particular the upstream kernel contains blkback but not blktap so using a vhd would not be expected to work today.
I'm afraid blktap is unlikely to be accepted upstream as it is. There is a plan to remove the kernel component and have guests communicate directly with the tapdisk process in userspace (via
/dev/xen/gtndevet al). There is no real downside to this since everything goes through tapdisk anyway. I don't know how advanced that plan is currently.
Quoted 4 lines
With the 4.1 release you might be able to use the qdisk (qemu based backend) to run a VHD but it is known not to perform all that well (and I don't know off-hand how you enable it). Performance is, AIUI, better with the upstream qemu port.
If you want to run 3.0.0-rc5 as dom0 your best bet would be to convert your vhd file to a raw file, setup LVM, then dd the raw file into a new LVM volume. This in order to get the best performances.
Otherwise the easiest thing to do would be to clone a kernel tree that contains blktap2, I believe Daniel has one based on 3.0, see the thread "xen 4.1.1 + 3.0.0-rc5 dom0 + blktap2".
Quoted 26 lines · Stefano Stabellini
Quoted 20 lines · Ian Campbell
Quoted 7 lines · Madjik
Hi,
I'm currently trying xen 4.1.1 with the 3.0.0-rc5 (heard that it now contains the xen code to run as front or back xen domain).
Everything seems to run fine, except that I am trying since a few hours to mount a .vhd file in the dom0.
Everything needed to run a guest is upstream but not everything needed to run any guest, if you see what I mean. In particular the upstream kernel contains blkback but not blktap so using a vhd would not be expected to work today.
I'm afraid blktap is unlikely to be accepted upstream as it is. There is a plan to remove the kernel component and have guests communicate directly with the tapdisk process in userspace (via
/dev/xen/gtndevet al). There is no real downside to this since everything goes through tapdisk anyway. I don't know how advanced that plan is currently.Quoted 4 lines
With the 4.1 release you might be able to use the qdisk (qemu based backend) to run a VHD but it is known not to perform all that well (and I don't know off-hand how you enable it). Performance is, AIUI, better with the upstream qemu port.
Quoted 7 lines
If you want to run 3.0.0-rc5 as dom0 your best bet would be to convert your vhd file to a raw file, setup LVM, then dd the raw file into a new LVM volume. This in order to get the best performances.
Otherwise the easiest thing to do would be to clone a kernel tree that contains blktap2, I believe Daniel has one based on 3.0, see the thread "xen 4.1.1 + 3.0.0-rc5 dom0 + blktap2".
Um, that's this thread ;-)
Ian.
Quoted 8 lines · Ian Campbell
Quoted 5 lines · Stefano Stabellini
On Thu, 30 Jun 2011, Ian Campbell wrote:
Otherwise the easiest thing to do would be to clone a kernel tree that contains blktap2, I believe Daniel has one based on 3.0, see the thread "xen 4.1.1 + 3.0.0-rc5 dom0 + blktap2".
Um, that's this thread ;-)
Oh wait. the same person has started two threads, with the exact same subject but from different email addresses.
Sebastian / Madjik -- please don't do that!
Ian.
Sorry, that was not intentional. Although I don't understand how I managed to send the original mail from both mail accounts accounts :/
Quoted 20 lines · Ian Campbell
Quoted 6 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
On Thu, 30 Jun 2011, Ian Campbell wrote:
Otherwise the easiest thing to do would be to clone a kernel tree that contains blktap2, I believe Daniel has one based on 3.0, see the thread "xen 4.1.1 + 3.0.0-rc5 dom0 + blktap2".Um, that's this thread ;-)
Oh wait. the same person has started two threads, with the exact same subject but from different email addresses.
Sebastian / Madjik -- please don't do that!
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel