Distro: debian unstable Xen version: 4.0.0-2 This is the config: #HVM #still no qemu-dm in debian #kernel = "/usr/lib/xen-4.0/boot/hvmloader" #builder = ''hvm'' #memory = 2048 #name = "webserver" #vif = [''bridge=eth0''] #disk = [''tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w'',''phy:/dev/cdrom,xvdb:cdrom,r''] #device-model = ''/usr/lib/xen-4.0/bin/qemu-dm'' #vnc = 1 #boot = ''d'' #PV name = "webserver" memory = 2048 bootloader = "/usr/lib/xen-4.0/bin/pygrub" vif = [''bridge=eth0''] disk = [ "tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w" ] vnc = 1 When I run xm create /srv/xen/profiles/webserver.cfg I get: Using config file "/srv/xen/profiles/webserver.cfg". Error: [Errno 2] No such file or directory: ''aio:/srv/xen/webserver.img'' I created the image with dd: # dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M seek=4095 count=1 # dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M count=4096 Darkbasic _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, 2010/6/22 Niccolò Belli <darkbasic4@gmail.com>:> Distro: debian unstable > Xen version: 4.0.0-2blktap2 is not available in debian package. Even if it will be available, its xend part have bugs and won''t work with pygrub. -- Łukasz Oleś _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jun 23, 2010 at 3:49 AM, Łukasz Oleś <lukaszoles@gmail.com> wrote:> Hi, > > 2010/6/22 Niccolò Belli <darkbasic4@gmail.com>: >> Distro: debian unstable >> Xen version: 4.0.0-2 > > blktap2 is not available in debian package. Even if it will be > available, its xend part have bugs and won''t work with pygrub.Really? blktap2 wont work with pygrub? You might want to try pv-grub then. That''s what I''m using on my test environment, RHEL5/xen 4.0.0 from Gitco . The hard part for me (back then) was finding a dom0 kernel that works correctly and reliably. Another thing that I observe from several dom0 kernels I tried (2.6.32 pv_ops and suse''s -xen kernel), is that if you have the new blktap2 module loaded (blktap or blktap2, depends on the kernel) but NOT having old blktap module loaded (blktap, xenblktap, or even not available at all), simply using "tap:aio" would end up using blktap2 as well (check /sys/class/blktap2/devices). -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, 2010/6/23 Fajar A. Nugraha <fajar@fajar.net>:> Really? blktap2 wont work with pygrub? > You might want to try pv-grub then. That''s what I''m using on my test > environment, RHEL5/xen 4.0.0 from Gitco . The hard part for me (back > then) was finding a dom0 kernel that works correctly and reliably.Stubdom and pvgrub are also missing in debian package...> Another thing that I observe from several dom0 kernels I tried (2.6.32 > pv_ops and suse''s -xen kernel), is that if you have the new blktap2 > module loaded (blktap or blktap2, depends on the kernel) but NOT > having old blktap module loaded (blktap, xenblktap, or even not > available at all), simply using "tap:aio" would end up using blktap2 > as well (check /sys/class/blktap2/devices).Yes, blktap2 is default now. -- Łukasz Oleś _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/22 Łukasz Oleś <lukaszoles@gmail.com>:> blktap2 is not available in debian package.Why doesn''t debian have blktap2 support? I read something here (http://www.gossamer-threads.com/lists/xen/devel/174023) and the license issue seems solved... How to get blktap2 support? Is there any patch to apply to the debian kernel source package? Have I to compile a xen mainline kernel?> Even if it will be > available, its xend part have bugs and won''t work with pygrub.Why doesn''t debian ship with pv-grub? Is there any way to work around it? Cheers, Darkbasic _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/23 Niccolò Belli <darkbasic4@gmail.com>:> How to get blktap2 support? Is there any patch to apply to the debian > kernel source package? Have I to compile a xen mainline kernel?I''m not really familiar with Debian''s xen packaging, but here''s what I can tell you about blktap2: - no distro officially supports it yet - you need support from both the userland and dom0 kernel - some kernel versions are known to have bugs regarding blktap2. For example, 2.6.32 + xen-patches-2.6.32-r2 doesn''t properly destroy unused blktap2 device. - xen userland tools (and hypervisor) can be easly compiled. See http://wiki.xensource.com/xenwiki/Xen4.0 , "tutorials" section - kernel part is more tricky. So you try following the tutorial route (which requires unreleased version of Xen, plus latest pv_ops kernel). Boris might be able to help you if you have problems there. Personally I prefer to use released Xen 4.0.0 (source on http://xen.org/), plus linux 2.6.34 + corresponding xen patch from http://code.google.com/p/gentoo-xen-kernel/downloads/list> Why doesn''t debian ship with pv-grub? Is there any way to work around it?Ask debian maintainers :) Boris'' tutorials on Ubuntu might also work on Debian. If you use RHEL/Centos5, I can share my kernel RPM, plus use packaged Xen 4.0 from Gitco for easy installation. Hopefully others can help you better with Debian. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, June 23, 2010 11:55 am, Fajar A. Nugraha wrote:> If you use RHEL/Centos5, I can share my kernel RPM, plus use packaged > Xen 4.0 from Gitco for easy installation. Hopefully others can help > you better with Debian.Would you say CentOS + Gitco Xen 4.0 is stable enough for production yet? - we remain on Gitco Xen 3.4.2 and haven''t started testing it yet but I am interested to hear anyone''s experiences so far. Depending on how things go we might move over to XCP when it hits 1.0 even though that is unlikely to be at Xen 4.0. Blktap2 is something I am really interested in. Cheers, Matt. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I compiled hypervisor, tools and kernel (2.6.32) from xen-4.0-testing.hg Unfortunately xm create returns this error: Error: Had a bootloader specified but no disks are bootable This is the config: kernel = "/usr/lib/xen/boot/hvmloader" builder = ''hvm'' memory = 2048 vcpus = "0" name = "webserver" vif = [''bridge=eth0''] disk = [''tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w'',''phy:/dev/cdrom,xvdb:cdrom,r''] device-model = ''/usr/lib/xen/bin/qemu-dm'' vnc = 1 boot = ''d'' I tried also disk = [''file:/root/debian.iso,xvdb:cdrom,r''] where debian.iso is obtained with dd if=/dev/cdrom of=debian.iso Darkbasic _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > Distro: debian unstable > Xen version: 4.0.0-2 > > This is the config: > #HVM > #still no qemu-dm in debian > > #kernel = "/usr/lib/xen-4.0/boot/hvmloader" > #builder = ''hvm'' > #memory = 2048 > #name = "webserver" > #vif = [''bridge=eth0''] > #disk > [''tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w'',''phy:/dev/cdrom,xvdb:cdrom,r''] > #device-model = ''/usr/lib/xen-4.0/bin/qemu-dm'' > #vnc = 1 > #boot = ''d'' > > > #PV > > name = "webserver" > memory = 2048 > bootloader = "/usr/lib/xen-4.0/bin/pygrub" > vif = [''bridge=eth0''] > disk = [ "tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w" ] > vnc = 1 > > When I run xm create /srv/xen/profiles/webserver.cfg I get: > Using config file "/srv/xen/profiles/webserver.cfg". > Error: [Errno 2] No such file or directory: ''aio:/srv/xen/webserver.img'' > > I created the image with dd: > # dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M seek=4095 > count=1 > # dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M count=4096 > > Darkbasicblktap2 works in current xen-testing-4.x and xen-unstable, but you should be use tap2:tapdisk:aio:...... (I do not know why it is not displayed in the documentation, but the code works the way). My configuration: "Opensolaris + pygrub + VHD" work fine for me. Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jun 23, 2010 at 7:06 PM, Matthew Law <matt@webcontracts.co.uk> wrote:> On Wed, June 23, 2010 11:55 am, Fajar A. Nugraha wrote: >> If you use RHEL/Centos5, I can share my kernel RPM, plus use packaged >> Xen 4.0 from Gitco for easy installation. Hopefully others can help >> you better with Debian. > > Would you say CentOS + Gitco Xen 4.0 is stable enough for production yet?I don''t know. I only got the fully working dom0 kernel today. Previous ones that I use (both pv_ops and Suse''s kernel-xen 2.6.32) has serius bugs (for me anyway) with blktap2. Ask me later in several weeks :D> - we remain on Gitco Xen 3.4.2 and haven''t started testing it yet but I am > interested to hear anyone''s experiences so far.3.4.2 + RHEL''s kernel-xen has been great so far. It helps fixing some issues (like opensolaris PV domU). If you only run LInux PV/Windows HVM domUs, and don''t need newer features, I''d say stick with RHEL''s bundled version of Xen.> Depending on how things > go we might move over to XCP when it hits 1.0 even though that is unlikely > to be at Xen 4.0. Blktap2 is something I am really interested in.I''d actually consider moving some servers to Xen 4 when it reaches 4.0.1 or 4.1 :D That, coupled with blktap2 + zfs-fuse, would be great. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/23 Niccolò Belli <darkbasic4@gmail.com>:> I compiled hypervisor, tools and kernel (2.6.32) from xen-4.0-testing.hg > Unfortunately xm create returns this error: > > Error: Had a bootloader specified but no disks are bootable > > This is the config: > kernel = "/usr/lib/xen/boot/hvmloader" > builder = ''hvm''You got that bootloader error with HVM? Seriously? Let''s tackle this one by one. Are you going with PV or HVM? Here''s what I use for Windows 2003 HVM #=======================================memory = 1000 vif = [ ''mac=00:16:3E:78:A8:01, bridge=br129, script=vif-bridge, vifname=win2003-eth0'' ] disk = [ ''tap:tapdisk:aio:/z/win2003-template/hda.img,xvda,w'', ''file:/z/iso/w2k3/w2k3.iso,hdc:cdrom,r'', ] boot="cd" device_model = ''/usr/lib64/xen/bin/qemu-dm'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' sdl=0 vnc=1 vnclisten="0.0.0.0" #vncunused=0 vncpasswd='''' stdvga=0 serial=''pty'' localtime=1 usbdevice=''tablet'' acpi=1 apic=0 pae=0 vcpus=1 cpus="1-7" cpu_cap=100 cpu_weight=128 #======================================= Here''s what I use with Ubuntu Lucid amd64 PV #=======================================memory = "512" vif = [ ''mac=00:16:3E:43:45:13, bridge=br129, vifname=ubuntu-pv-eth0'' ] disk = [ ''tap:tapdisk:aio:/z/ubuntu-template/xvda.img,xvda,w'', ] kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz" extra = "(hd0,0)/grub/menu.lst" cpus="1-7" vcpus=1 #vfb=[''vnc=1,vnclisten=0.0.0.0''] #======================================= That''s the running config. For installation config file, I use Ubuntu''s network boot kernel and initrd (no need for "extra" line during installation). -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/23 eXeC001er <execooler@gmail.com>:> blktap2 works in current xen-testing-4.x and xen-unstableYour changes was reverted few days ago http://xenbits.xensource.com/xen-4.0-testing.hg?rev/3544bdd56c32> , but you should be > use tap2:tapdisk:aio:...... (I do not know why it is not displayed in theI thought that tap:aio and tap:tapdisk:aio both are valid -- Łukasz Oleś _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/23 eXeC001er <execooler@gmail.com>:> blktap2 works in current xen-testing-4.x and xen-unstable, but you should be > use tap2:tapdisk:aio:...... (I do not know why it is not displayed in the > documentation, but the code works the way).I saw there is no CONFIG_XEN_BLKDEV_TAP2 in the 2.6.32 xen git kernel, only CONFIG_XEN_BLKDEV_TAP (which builds blktap.ko). This is my latest config: memory = 1000 vif = [''bridge=eth0''] disk = [ ''tap2:tapdisk:aio:/srv/xen/webserver.img,sda,w'', ''file:/root/debian.iso,hdc:cdrom,r'', ] boot="cd" #HVM #device_model = ''/usr/lib/xen/bin/qemu-dm'' #kernel = "/usr/lib/xen/boot/hvmloader" #builder=''hvm'' #PV kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz" extra = "(hd0,0)/boot/grub/grub.cfg" sdl=0 vnc=1 vnclisten="0.0.0.0" vncpasswd='''' If I do not load blktap module, using tap2:tapdisk:aio it complains about missing blktap2 driver: Error: Failed to create device. stdout: didn''t find blktap-control in /proc/misc stderr: Check that target "/srv/xen/webserver.img" exists and that blktap2 driver installed in dom0. Using tap:tapdisk:aio it does not complain about the missing driver, but the debian installer does not find any disk at all. Using xvda,w instead of sda,w does not work too: the debian installer does not find any disk. I load the debian installer using HVM, but as soon as it comes to install the bootloader (both grub and grub2) it complains about not being able to install it. I also noticed it cannot set the partition as bootable! Without a bootloader I have to swtich to PV, but it freezes just before the login prompt: INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting enhanced syslogd: rsyslogd. Starting ACPI services...RTNETLINK1 answers: No such file or directory acpid: error talking to the kernel via netlink . Starting periodic command scheduler: cron. Running scripts in rc2.d/ took 0 seconds. Darkbasic _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/24 Niccolò Belli <darkbasic4@gmail.com>:> sdl=0 > vnc=1 > vnclisten="0.0.0.0" > vncpasswd=''''I''m not sure if those work for PV domU. AFAIK PV uses "vfb" line.> If I do not load blktap module, using tap2:tapdisk:aio it complains > about missing blktap2 driver: > > Error: Failed to create device. > stdout: didn''t find blktap-control in /proc/misc > stderr: > Check that target "/srv/xen/webserver.img" exists and that blktap2 > driver installed in dom0.Let me get this straight. You do NOT load blktap module? That module is needed for blktap2 to work on pv_ops kernel.> Without a bootloader I have to swtich to PV,Are you using ext4 by any chance? I don''t know if Xen 4.0.0''s pygrub/pv-grub supports it yet.> but it freezes just > before the login prompt:That part should be easy http://wiki.xensource.com/xenwiki/XenCommonProblems#head-01b189c753b6fef5ea1dc8414a6624feb8d89a22 -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Il 24 giugno 2010 03.10, Fajar A. Nugraha <fajar@fajar.net> ha scritto:> Let me get this straight. You do NOT load blktap module? > That module is needed for blktap2 to work on pv_ops kernel.I did not load it to check if tap2:tapdisk:aio and tap:tapdisk:aio were the same or not. This ( http://wiki.xensource.com/xenwiki/blktap2 ) wiki page tells I have to use tap:tapdisk:aio in order to use blktap2 but it is wrong!> Are you using ext4 by any chance? I don''t know if Xen 4.0.0''s > pygrub/pv-grub supports it yet.No, it doesn''t. I''m using ext3 and I cannot install the bootloader, so HVM becomes useless and I have to switch to PV (which is what I will use for linux, but now I''m just testing). Is there any chance to install the bootloader and so use HVM?> That part should be easy > http://wiki.xensource.com/xenwiki/XenCommonProblems#head-01b189c753b6fef5ea1dc8414a6624feb8d89a22Uhm.. I''m pretty sure I never did it with debian stable, maybe debootstrap did it for me? Darkbasic _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/24 Niccolò Belli <darkbasic4@gmail.com>> > Il 24 giugno 2010 03.10, Fajar A. Nugraha <fajar@fajar.net> ha scritto: > > Let me get this straight. You do NOT load blktap module? > > That module is needed for blktap2 to work on pv_ops kernel. > > I did not load it to check if tap2:tapdisk:aio and tap:tapdisk:aio > were the same or not. > This ( http://wiki.xensource.com/xenwiki/blktap2 ) wiki page tells I > have to use tap:tapdisk:aio in order to use blktap2 but it is wrong!It''s incomplete, perhaps. At least both tap:tapdisk:aio and tap:aio works on novell''s kernel-xen. I''m not sure about newer pv_ops kernel though, so if you find something that needs to be chaned, you should submit changes to the Wiki.> > > Are you using ext4 by any chance? I don''t know if Xen 4.0.0''s > > pygrub/pv-grub supports it yet. > > No, it doesn''t. I''m using ext3 and I cannot install the bootloader, so > HVM becomes useless and I have to switch to PV (which is what I will > use for linux, but now I''m just testing). Is there any chance to > install the bootloader and so use HVM?That''s new. I never had that problem. What happens if you just use tap:aio AND load the blktap module? It should use blktap2 anyway.> > > That part should be easy > > http://wiki.xensource.com/xenwiki/XenCommonProblems#head-01b189c753b6fef5ea1dc8414a6624feb8d89a22 > > Uhm.. I''m pretty sure I never did it with debian stable, maybe > debootstrap did it for me?Is this a HVM install converted to PV? If yes, that might explain it, as HVM doesn''t know anything about hvc0. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/24 Fajar A. Nugraha <fajar@fajar.net>:> What happens if you just use tap:aio AND load the blktap module? It > should use blktap2 anyway.How to check? I''m not sure what should I search for in /var/log/xend.conf> Is this a HVM install converted to PV? If yes, that might explain it, > as HVM doesn''t know anything about hvc0.Yes, it is. Do you know how to switch to another virtual console during the installation using vnc? The problem is how to send "ALT" though vnc... Darkbasic P.S. I also found networking (at least bridging) *VERY* unstable. Sometimes I have to reboot using magic sysrq keys... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010/6/24 Niccolò Belli <darkbasic4@gmail.com>:> 2010/6/24 Fajar A. Nugraha <fajar@fajar.net>: >> What happens if you just use tap:aio AND load the blktap module? It >> should use blktap2 anyway. > > How to check? I''m not sure what should I search for in /var/log/xend.confYou how to check if it''s using blktap2? Try cat /sys/class/blktap2/devices> > >> Is this a HVM install converted to PV? If yes, that might explain it, >> as HVM doesn''t know anything about hvc0. > > Yes, it is. Do you know how to switch to another virtual console > during the installation using vnc? The problem is how to send "ALT" > though vnc...Try pressing "F8" on vncviewer -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> blktap2 works in current xen-testing-4.x and xen-unstable, but youshould be use >tap2:tapdisk:aio:...... (I do not know why it is not displayed in the documentation, but the > code works the way). Yes. Both patches work fine, in my case for NexentaStor 3.0.2 xen image> My configuration: "Opensolaris + pygrub + VHD" workfine for me. I still have trouble with b134. First time DomU loads well . SMF configuration phase. Afterwards one more DHCP request is required to obtain IP Boris. --- On Wed, 6/23/10, eXeC001er <execooler@gmail.com> wrote: From: eXeC001er <execooler@gmail.com> Subject: [Xen-users] RE: blktap2 does not work To: darkbasic4@gmail.com, xen-users@lists.xensource.com Date: Wednesday, June 23, 2010, 10:07 AM Distro: debian unstable Xen version: 4.0.0-2 This is the config: #HVM #still no qemu-dm in debian #kernel = "/usr/lib/xen-4.0/boot/hvmloader" #builder = ''hvm'' #memory = 2048 #name = "webserver" #vif = [''bridge=eth0''] #disk = [''tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w'',''phy:/dev/cdrom,xvdb:cdrom,r''] #device-model = ''/usr/lib/xen-4.0/bin/qemu-dm'' #vnc = 1 #boot = ''d'' #PV name = "webserver" memory = 2048 bootloader = "/usr/lib/xen-4.0/bin/pygrub" vif = [''bridge=eth0''] disk = [ "tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w" ] vnc = 1 When I run xm create /srv/xen/profiles/webserver.cfg I get: Using config file "/srv/xen/profiles/webserver.cfg". Error: [Errno 2] No such file or directory: ''aio:/srv/xen/webserver.img'' I created the image with dd: # dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M seek=4095 count=1 # dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M count=4096 Darkbasic blktap2 works in current xen-testing-4.x and xen-unstable, but you should be use tap2:tapdisk:aio:...... (I do not know why it is not displayed in the documentation, but the code works the way). My configuration: "Opensolaris + pygrub + VHD" work fine for me. Thanks. -----Inline Attachment Follows----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open failed
- Xen 4.0.1, tap vs tap2, blktap2 documentation, and gentoo-xen-kernel problem
- xen 4.0-testing: cannot install grub in debian domU (both hvm and pv)
- Third release candidate for Xen 4.0.1
- domU can not start in Xen 4.0.1-rc3-pre using tapdisk