Hi, I just installed Xen 3.1.4 on an x86_64 machine, and as I verified for the HVM configuration file for my VM e.g. kernel="/usr/lib/xen/boot/hvmloader" builder=''hvm'' device_model=''/usr/lib/xen/bin/qemu-dm'' memory=4188 name=''SLC4_64'' vif=[ ''type=ioemu,bridge=xenbr0'' ] disk=[''phy:/dev/sda6,ioemu:hda,w'',''file:/usr/local/iso/edgy_amd64.iso,hdc:cdrom,r''] boot=''d'' #vcpu#cpu Q1: I noticed that there is no /usr/lib/xen/bin/qemu-dm file for the device_model entry. Why this line is required in the configuration file, and how could I get this qemu-dm file. Q2: Secondly, in the disk entry: can I use "xvda1" or "xvda2" rather than "ioemu:hda"? Why "ioemu:hda" necessary? Thanks a lot for your help! Regards -- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Aug 17, 2008 at 11:51 AM, Omer Khalid <Omer.Khalid@cern.ch> wrote:> Hi, > I just installed Xen 3.1.4 on an x86_64 machine, and as I verified for the > HVM configuration file for my VM e.g. > kernel="/usr/lib/xen/boot/hvmloader" > builder=''hvm'' > device_model=''/usr/lib/xen/bin/qemu-dm'' > memory=4188 > name=''SLC4_64'' > vif=[ ''type=ioemu,bridge=xenbr0'' ] > disk=[''phy:/dev/sda6,ioemu:hda,w'',''file:/usr/local/iso/edgy_amd64.iso,hdc:cdrom,r''] > boot=''d'' > #vcpu> #cpu> Q1: I noticed that there is no /usr/lib/xen/bin/qemu-dm file for the > device_model entry. Why this line is required in the configuration file, and > how could I get this qemu-dm file.The device model entry tells Xen which backend device model to use. For paravirtual (PV) guests this is the standard front/back PV device model, so it is assumed. For full virtualization (HVM) guests it is typically the QEMU device model. The location of the qemu-dm binary depends on how you installed Xen (by source or by a distribution package.). a simple way to find it is to do: updatedb locate qemu-dm it is typically in /usr/<your architecture lib directory>/xen/bin/> Q2: Secondly, in the disk entry: can I use "xvda1" or "xvda2" rather than > "ioemu:hda"? Why "ioemu:hda" necessary?Since HVM guests use the QEMU device model by default you can''t use xvda devices unless you install the PV drivers on the HVM guest. You can get the latest GPL PV drivers from: http://wiki.xensource.com/xenwiki/XenWindowsGplPv Cheers, Todd -- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Todd, Thanks a lot for your reply. updatedb and locate qemu-dm provided me the path i was looking for. Thanks, Omer On Mon, Aug 18, 2008 at 2:42 AM, Todd Deshane <deshantm@gmail.com> wrote:> On Sun, Aug 17, 2008 at 11:51 AM, Omer Khalid <Omer.Khalid@cern.ch> wrote: > > Hi, > > I just installed Xen 3.1.4 on an x86_64 machine, and as I verified for > the > > HVM configuration file for my VM e.g. > > kernel="/usr/lib/xen/boot/hvmloader" > > builder=''hvm'' > > device_model=''/usr/lib/xen/bin/qemu-dm'' > > memory=4188 > > name=''SLC4_64'' > > vif=[ ''type=ioemu,bridge=xenbr0'' ] > > > disk=[''phy:/dev/sda6,ioemu:hda,w'',''file:/usr/local/iso/edgy_amd64.iso,hdc:cdrom,r''] > > boot=''d'' > > #vcpu> > #cpu> > Q1: I noticed that there is no /usr/lib/xen/bin/qemu-dm file for the > > device_model entry. Why this line is required in the configuration file, > and > > how could I get this qemu-dm file. > > The device model entry tells Xen which backend device model to use. > For paravirtual (PV) > guests this is the standard front/back PV device model, so it is > assumed. For full > virtualization (HVM) guests it is typically the QEMU device model. > > The location of the qemu-dm binary depends on how you installed Xen > (by source or by > a distribution package.). > > a simple way to find it is to do: > updatedb > locate qemu-dm > > it is typically in > > /usr/<your architecture lib directory>/xen/bin/ > > > > Q2: Secondly, in the disk entry: can I use "xvda1" or "xvda2" rather than > > "ioemu:hda"? Why "ioemu:hda" necessary? > > Since HVM guests use the QEMU device model by default you can''t use xvda > devices unless you install the PV drivers on the HVM guest. You can get the > latest GPL PV drivers from: > > http://wiki.xensource.com/xenwiki/XenWindowsGplPv > > Cheers, > Todd > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I manage to configure my xen 3.1.4 HVM installation and launch the VM but "xm console <id>" seem not to work! I have a HVM Linux guest running. The error I get is following: xenconsole: Could not read tty from store: No such file or directory Is some thing missing in my configuration? Further, I am using the following xen configuration file: kernel="/usr/lib/xen/boot/hvmloader" builder=''hvm'' device_model=''/usr/lib64/xen/bin/qemu-dm'' memory=2048 name=''Atlas-14.2.10'' hostname=''xxx.cern.ch'' vif=[ ''type=ioemu,bridge=xenbr0'' ] gateway= "128.xxx.xxx.xxx" netmask = "255.xxx.xxx.xxx" disk=[''phy:/dev/vg1/slc4_hvm,ioemu:hda1,w'',''phy:/dev/vg1/slc4_swap, ioemu:hda2,w'',''phy:/dev/vg1/athena-14.2.10,ioemu:hdb1,w''] root= "/dev/hda1 ro" boot=''d'' on_reboot = ''restart'' on_crash = ''restart'' on_poweroff = ''restart'' Thanks for your help. Regards Omer On Mon, Aug 18, 2008 at 2:42 AM, Todd Deshane <deshantm@gmail.com> wrote:> On Sun, Aug 17, 2008 at 11:51 AM, Omer Khalid <Omer.Khalid@cern.ch> wrote: > > Hi, > > I just installed Xen 3.1.4 on an x86_64 machine, and as I verified for > the > > HVM configuration file for my VM e.g. > > kernel="/usr/lib/xen/boot/hvmloader" > > builder=''hvm'' > > device_model=''/usr/lib/xen/bin/qemu-dm'' > > memory=4188 > > name=''SLC4_64'' > > vif=[ ''type=ioemu,bridge=xenbr0'' ] > > > disk=[''phy:/dev/sda6,ioemu:hda,w'',''file:/usr/local/iso/edgy_amd64.iso,hdc:cdrom,r''] > > boot=''d'' > > #vcpu> > #cpu> > Q1: I noticed that there is no /usr/lib/xen/bin/qemu-dm file for the > > device_model entry. Why this line is required in the configuration file, > and > > how could I get this qemu-dm file. > > The device model entry tells Xen which backend device model to use. > For paravirtual (PV) > guests this is the standard front/back PV device model, so it is > assumed. For full > virtualization (HVM) guests it is typically the QEMU device model. > > The location of the qemu-dm binary depends on how you installed Xen > (by source or by > a distribution package.). > > a simple way to find it is to do: > updatedb > locate qemu-dm > > it is typically in > > /usr/<your architecture lib directory>/xen/bin/ > > > > Q2: Secondly, in the disk entry: can I use "xvda1" or "xvda2" rather than > > "ioemu:hda"? Why "ioemu:hda" necessary? > > Since HVM guests use the QEMU device model by default you can''t use xvda > devices unless you install the PV drivers on the HVM guest. You can get the > latest GPL PV drivers from: > > http://wiki.xensource.com/xenwiki/XenWindowsGplPv > > Cheers, > Todd > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote:> Hi, > I manage to configure my xen 3.1.4 HVM installation and launch the VM but > "xm console <id>" seem not to work! I have a HVM Linux guest running. The > error I get is following: > xenconsole: Could not read tty from store: No such file or directory > Is some thing missing in my configuration?How is your Linux guest setup? You will need the appropriate console specified on the kernel command line... hvc or xvc, I forget which is which at the moment, but you should be able to search the mailing list archives for that (try xen.markmail.org) (One is for the older xen linux kernels and one is for the mainline xen linux kernels) You will also want to make sure that the linux guest has the xen console support in it. Hope that helps, Todd -- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Todd, I tried both xvc0 and hvc0 but it didn''t work! I kept on getting the same message "xenconsole: Could not read tty from store: No such file or directory". But when I put <serial=''pty''> in the vm config file; then the console seems to start but hangs...And the only way out is Cntrl-]. By looking at the xen mail archives, it seems that HVM based VM suffer from this problem. Unfortunately, I don''t have the VNC for this machine other wise i could have accessed the console through it. Additionally, I also tried the following combinations in the vm config file: <console="/dev/console">, <console="/dev/tty1">, <console="/dev/ttyS0"> I also tried the above combinations with the modifications to /etc/inittab file for getty: co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 But no luck :(((( Any ideas? Cheers Omer On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane <deshantm@gmail.com> wrote:> On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote: > > Hi, > > I manage to configure my xen 3.1.4 HVM installation and launch the VM but > > "xm console <id>" seem not to work! I have a HVM Linux guest running. The > > error I get is following: > > xenconsole: Could not read tty from store: No such file or directory > > Is some thing missing in my configuration? > > How is your Linux guest setup? > > You will need the appropriate console specified on the kernel command > line... > > hvc or xvc, I forget which is which at the moment, but you should be able > to > search the mailing list archives for that (try xen.markmail.org) > (One is for the older xen linux kernels and one is for the mainline xen > linux > kernels) > > You will also want to make sure that the linux guest has the xen > console support > in it. > > Hope that helps, > Todd > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Aug 21, 2008 at 4:41 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote:> Hi Todd, > I tried both xvc0 and hvc0 but it didn''t work! I kept on getting the same > message "xenconsole: Could not read tty from store: No such file or > directory". > But when I put <serial=''pty''> in the vm config file; then the console seems > to start but hangs...And the only way out is Cntrl-]. > By looking at the xen mail archives, it seems that HVM based VM suffer from > this problem. Unfortunately, I don''t have the VNC for this machine other > wise i could have accessed the console through it. > Additionally, I also tried the following combinations in the vm config file: > <console="/dev/console">, <console="/dev/tty1">, <console="/dev/ttyS0"> > I also tried the above combinations with the modifications to /etc/inittab > file for getty: > co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 > > But no luck :(((( > Any ideas?I''ve read that virt-manager does a good job of setting it up. Maybe try a CentOS instance to compare with. Cheers, Todd> Cheers > Omer > On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane <deshantm@gmail.com> wrote: >> >> On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote: >> > Hi, >> > I manage to configure my xen 3.1.4 HVM installation and launch the VM >> > but >> > "xm console <id>" seem not to work! I have a HVM Linux guest running. >> > The >> > error I get is following: >> > xenconsole: Could not read tty from store: No such file or directory >> > Is some thing missing in my configuration? >> >> How is your Linux guest setup? >> >> You will need the appropriate console specified on the kernel command >> line... >> >> hvc or xvc, I forget which is which at the moment, but you should be able >> to >> search the mailing list archives for that (try xen.markmail.org) >> (One is for the older xen linux kernels and one is for the mainline xen >> linux >> kernels) >> >> You will also want to make sure that the linux guest has the xen >> console support >> in it. >> >> Hope that helps, >> Todd >> >> -- >> Todd Deshane >> http://todddeshane.net >> check out our book: http://runningxen.com > > > > -- > Omer > > ------------------------------------------------------- > CERN -- European Organization for Nuclear > Research, IT Department, CH-1211, > Geneva 23, Switzerland > > Phone: +41 (0) 22 767 2224 > Fax: +41 (0) 22 766 8683 > E-mail : Omer.Khalid@cern.ch > Homepage: http://cern.ch/Omer.Khalid >-- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Omer Khalid wrote:> Hi Todd, > > I tried both xvc0 and hvc0 but it didn''t work! I kept on getting the > same message "xenconsole: Could not read tty from store: No such file > or directory". > > But when I put <serial=''pty''> in the vm config file; then the console > seems to start but hangs...And the only way out is Cntrl-]. > > By looking at the xen mail archives, it seems that HVM based VM suffer > from this problem. Unfortunately, I don''t have the VNC for this > machine other wise i could have accessed the console through it. > > Additionally, I also tried the following combinations in the vm config > file: > > <console="/dev/console">, <console="/dev/tty1">, <console="/dev/ttyS0">Try serial=''pty'' in the hvm config file and append "console=ttyS0" to the kernel line of the hvm guest, not in the vm config file. --Sadique> > I also tried the above combinations with the modifications to > /etc/inittab file for getty: > > co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 > > But no luck :(((( > > Any ideas? > > Cheers > Omer > > On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane <deshantm@gmail.com > <mailto:deshantm@gmail.com>> wrote: > > On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid > <Omer.Khalid@cern.ch> wrote: > > Hi, > > I manage to configure my xen 3.1.4 HVM installation and launch > the VM but > > "xm console <id>" seem not to work! I have a HVM Linux guest > running. The > > error I get is following: > > xenconsole: Could not read tty from store: No such file or directory > > Is some thing missing in my configuration? > > How is your Linux guest setup? > > You will need the appropriate console specified on the kernel > command line... > > hvc or xvc, I forget which is which at the moment, but you should > be able to > search the mailing list archives for that (try xen.markmail.org > <http://xen.markmail.org>) > (One is for the older xen linux kernels and one is for the > mainline xen linux > kernels) > > You will also want to make sure that the linux guest has the xen > console support > in it. > > Hope that helps, > Todd > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com > > > > > -- > Omer > > ------------------------------------------------------- > CERN -- European Organization for Nuclear > Research, IT Department, CH-1211, > Geneva 23, Switzerland > > Phone: +41 (0) 22 767 2224 > Fax: +41 (0) 22 766 8683 > E-mail : Omer.Khalid@cern.ch > Homepage: http://cern.ch/Omer.Khalid > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Hi Todd, I am using a xen on a centre in our data centre with out any graphics support, so unfortuantely I can''t use virt-manager nor CentOS as I need my results to be on the guest OS I am use. Usually I access the VM''s on my server, and it''s network is also not working. I have been trying 2-prong approach to access the VM''s; serial console and SSH. My VM is configured with the DHCP and i am using the following parameters to configure network in the configuration file: hostname=''lxb80v1.cern.ch'' #ip="128.xxx.xxx.xxx" vif=[''type=ioemu,bridge=xenbr0''] gateway= "128.xxx.1.1" netmask = "255.255.0.0" This works for PV based VM''s but does not work for the HVM VM''s. I am wondering if I am missing any specific step. If SSH start''s working, then i can live without "xm console". Thanks, Omer On Fri, Aug 22, 2008 at 2:17 AM, Todd Deshane <deshantm@gmail.com> wrote:> On Thu, Aug 21, 2008 at 4:41 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote: > > Hi Todd, > > I tried both xvc0 and hvc0 but it didn''t work! I kept on getting the same > > message "xenconsole: Could not read tty from store: No such file or > > directory". > > But when I put <serial=''pty''> in the vm config file; then the console > seems > > to start but hangs...And the only way out is Cntrl-]. > > By looking at the xen mail archives, it seems that HVM based VM suffer > from > > this problem. Unfortunately, I don''t have the VNC for this machine other > > wise i could have accessed the console through it. > > Additionally, I also tried the following combinations in the vm config > file: > > <console="/dev/console">, <console="/dev/tty1">, <console="/dev/ttyS0"> > > I also tried the above combinations with the modifications to > /etc/inittab > > file for getty: > > co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 > > > > But no luck :(((( > > Any ideas? > > I''ve read that virt-manager does a good job of setting it up. Maybe try a > CentOS > instance to compare with. > > Cheers, > Todd > > > Cheers > > Omer > > On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane <deshantm@gmail.com> > wrote: > >> > >> On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid <Omer.Khalid@cern.ch> > wrote: > >> > Hi, > >> > I manage to configure my xen 3.1.4 HVM installation and launch the VM > >> > but > >> > "xm console <id>" seem not to work! I have a HVM Linux guest running. > >> > The > >> > error I get is following: > >> > xenconsole: Could not read tty from store: No such file or directory > >> > Is some thing missing in my configuration? > >> > >> How is your Linux guest setup? > >> > >> You will need the appropriate console specified on the kernel command > >> line... > >> > >> hvc or xvc, I forget which is which at the moment, but you should be > able > >> to > >> search the mailing list archives for that (try xen.markmail.org) > >> (One is for the older xen linux kernels and one is for the mainline xen > >> linux > >> kernels) > >> > >> You will also want to make sure that the linux guest has the xen > >> console support > >> in it. > >> > >> Hope that helps, > >> Todd > >> > >> -- > >> Todd Deshane > >> http://todddeshane.net > >> check out our book: http://runningxen.com > > > > > > > > -- > > Omer > > > > ------------------------------------------------------- > > CERN -- European Organization for Nuclear > > Research, IT Department, CH-1211, > > Geneva 23, Switzerland > > > > Phone: +41 (0) 22 767 2224 > > Fax: +41 (0) 22 766 8683 > > E-mail : Omer.Khalid@cern.ch > > Homepage: http://cern.ch/Omer.Khalid > > > > > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello Sadique, Thanks for your tip; i tried it by putting console=ttyS0 in the kernel line of HVM guest but the result is still the same. When I launch the guest with xm create -c or do xm console id, then after couple of space tabs- the console hangs. I can come out of it by Cntrl-]. It seems that its trying to retrieve the serial output but not getting as its not complaining any more about the xenconsole not configured properly... Any more ideas? Due to lack of console/vnc, I am not able to debug why the network is not working for the VM as i cant SSH into. The problem could be either the network is not properly configured or the hvm guest never boots up....but to verify that I need the console access :-((( Cheers Omer On Fri, Aug 22, 2008 at 9:36 AM, Sadique Puthen <sputhenp@redhat.com> wrote:> Omer Khalid wrote: > > Hi Todd, > > > > I tried both xvc0 and hvc0 but it didn''t work! I kept on getting the > > same message "xenconsole: Could not read tty from store: No such file > > or directory". > > > > But when I put <serial=''pty''> in the vm config file; then the console > > seems to start but hangs...And the only way out is Cntrl-]. > > > > By looking at the xen mail archives, it seems that HVM based VM suffer > > from this problem. Unfortunately, I don''t have the VNC for this > > machine other wise i could have accessed the console through it. > > > > Additionally, I also tried the following combinations in the vm config > > file: > > > > <console="/dev/console">, <console="/dev/tty1">, <console="/dev/ttyS0"> > > Try serial=''pty'' in the hvm config file and append "console=ttyS0" to > the kernel line of the hvm guest, not in the vm config file. > > --Sadique > > > > > I also tried the above combinations with the modifications to > > /etc/inittab file for getty: > > > > co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 > > > > But no luck :(((( > > > > Any ideas? > > > > Cheers > > Omer > > > > On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane <deshantm@gmail.com > > <mailto:deshantm@gmail.com>> wrote: > > > > On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid > > <Omer.Khalid@cern.ch> wrote: > > > Hi, > > > I manage to configure my xen 3.1.4 HVM installation and launch > > the VM but > > > "xm console <id>" seem not to work! I have a HVM Linux guest > > running. The > > > error I get is following: > > > xenconsole: Could not read tty from store: No such file or > directory > > > Is some thing missing in my configuration? > > > > How is your Linux guest setup? > > > > You will need the appropriate console specified on the kernel > > command line... > > > > hvc or xvc, I forget which is which at the moment, but you should > > be able to > > search the mailing list archives for that (try xen.markmail.org > > <http://xen.markmail.org>) > > (One is for the older xen linux kernels and one is for the > > mainline xen linux > > kernels) > > > > You will also want to make sure that the linux guest has the xen > > console support > > in it. > > > > Hope that helps, > > Todd > > > > -- > > Todd Deshane > > http://todddeshane.net > > check out our book: http://runningxen.com > > > > > > > > > > -- > > Omer > > > > ------------------------------------------------------- > > CERN -- European Organization for Nuclear > > Research, IT Department, CH-1211, > > Geneva 23, Switzerland > > > > Phone: +41 (0) 22 767 2224 > > Fax: +41 (0) 22 766 8683 > > E-mail : Omer.Khalid@cern.ch > > Homepage: http://cern.ch/Omer.Khalid > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
#Unfortunately, I don''t have the VNC for this #machine other wise i could have accessed the console through it. Hi, may I ask, why you aren''t able to have vnc for this machine? Cheers, Alex Omer Khalid schrieb:> Hello Sadique, > > Thanks for your tip; i tried it by putting console=ttyS0 in the kernel > line of HVM guest but the result is still the same. When I launch the > guest with xm create -c or do xm console id, then after couple of > space tabs- the console hangs. I can come out of it by Cntrl-]. It > seems that its trying to retrieve the serial output but not getting as > its not complaining any more about the xenconsole not configured > properly... > > Any more ideas? Due to lack of console/vnc, I am not able to debug why > the network is not working for the VM as i cant SSH into. The problem > could be either the network is not properly configured or the hvm > guest never boots up....but to verify that I need the console access :-((( > > Cheers > Omer > > On Fri, Aug 22, 2008 at 9:36 AM, Sadique Puthen <sputhenp@redhat.com > <mailto:sputhenp@redhat.com>> wrote: > > Omer Khalid wrote: > > Hi Todd, > > > > I tried both xvc0 and hvc0 but it didn''t work! I kept on getting the > > same message "xenconsole: Could not read tty from store: No such > file > > or directory". > > > > But when I put <serial=''pty''> in the vm config file; then the > console > > seems to start but hangs...And the only way out is Cntrl-]. > > > > By looking at the xen mail archives, it seems that HVM based VM > suffer > > from this problem. Unfortunately, I don''t have the VNC for this > > machine other wise i could have accessed the console through it. > > > > Additionally, I also tried the following combinations in the vm > config > > file: > > > > <console="/dev/console">, <console="/dev/tty1">, > <console="/dev/ttyS0"> > > Try serial=''pty'' in the hvm config file and append "console=ttyS0" to > the kernel line of the hvm guest, not in the vm config file. > > --Sadique > > > > > I also tried the above combinations with the modifications to > > /etc/inittab file for getty: > > > > co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 > > > > But no luck :(((( > > > > Any ideas? > > > > Cheers > > Omer > > > > On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane > <deshantm@gmail.com <mailto:deshantm@gmail.com> > > <mailto:deshantm@gmail.com <mailto:deshantm@gmail.com>>> wrote: > > > > On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid > > <Omer.Khalid@cern.ch> wrote: > > > Hi, > > > I manage to configure my xen 3.1.4 HVM installation and launch > > the VM but > > > "xm console <id>" seem not to work! I have a HVM Linux guest > > running. The > > > error I get is following: > > > xenconsole: Could not read tty from store: No such file or > directory > > > Is some thing missing in my configuration? > > > > How is your Linux guest setup? > > > > You will need the appropriate console specified on the kernel > > command line... > > > > hvc or xvc, I forget which is which at the moment, but you > should > > be able to > > search the mailing list archives for that (try > xen.markmail.org <http://xen.markmail.org> > > <http://xen.markmail.org>) > > (One is for the older xen linux kernels and one is for the > > mainline xen linux > > kernels) > > > > You will also want to make sure that the linux guest has the xen > > console support > > in it. > > > > Hope that helps, > > Todd > > > > -- > > Todd Deshane > > http://todddeshane.net > > check out our book: http://runningxen.com > > > > > > > > > > -- > > Omer > > > > ------------------------------------------------------- > > CERN -- European Organization for Nuclear > > Research, IT Department, CH-1211, > > Geneva 23, Switzerland > > > > Phone: +41 (0) 22 767 2224 > > Fax: +41 (0) 22 766 8683 > > E-mail : Omer.Khalid@cern.ch > > Homepage: http://cern.ch/Omer.Khalid > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > > http://lists.xensource.com/xen-users > > > > > -- > Omer > > ------------------------------------------------------- > CERN -- European Organization for Nuclear > Research, IT Department, CH-1211, > Geneva 23, Switzerland > > Phone: +41 (0) 22 767 2224 > Fax: +41 (0) 22 766 8683 > E-mail : Omer.Khalid@cern.ch > Homepage: http://cern.ch/Omer.Khalid > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Hello Alexander, This is a server running RHEL4 with out any X Server or Graphics layer. And I only access this server and the VM's on it through SSH Command line! That's why :-) Cheers Omer On Fri, Aug 22, 2008 at 1:35 PM, Alexander Hoßdorf <xen-users@hossdorf.eu>wrote:> #Unfortunately, I don't have the VNC for this > #machine other wise i could have accessed the console through it. > > Hi, > may I ask, why you aren't able to have vnc for this machine? > > Cheers, > Alex > > > Omer Khalid schrieb: > >> Hello Sadique, >> >> Thanks for your tip; i tried it by putting console=ttyS0 in the kernel >> line of HVM guest but the result is still the same. When I launch the guest >> with xm create -c or do xm console id, then after couple of space tabs- the >> console hangs. I can come out of it by Cntrl-]. It seems that its trying to >> retrieve the serial output but not getting as its not complaining any more >> about the xenconsole not configured properly... >> >> Any more ideas? Due to lack of console/vnc, I am not able to debug why the >> network is not working for the VM as i cant SSH into. The problem could be >> either the network is not properly configured or the hvm guest never boots >> up....but to verify that I need the console access :-((( >> >> Cheers >> Omer >> >> On Fri, Aug 22, 2008 at 9:36 AM, Sadique Puthen <sputhenp@redhat.com<mailto: >> sputhenp@redhat.com>> wrote: >> >> Omer Khalid wrote: >> > Hi Todd, >> > >> > I tried both xvc0 and hvc0 but it didn't work! I kept on getting the >> > same message "xenconsole: Could not read tty from store: No such >> file >> > or directory". >> > >> > But when I put <serial='pty'> in the vm config file; then the >> console >> > seems to start but hangs...And the only way out is Cntrl-]. >> > >> > By looking at the xen mail archives, it seems that HVM based VM >> suffer >> > from this problem. Unfortunately, I don't have the VNC for this >> > machine other wise i could have accessed the console through it. >> > >> > Additionally, I also tried the following combinations in the vm >> config >> > file: >> > >> > <console="/dev/console">, <console="/dev/tty1">, >> <console="/dev/ttyS0"> >> >> Try serial='pty' in the hvm config file and append "console=ttyS0" to >> the kernel line of the hvm guest, not in the vm config file. >> >> --Sadique >> >> > >> > I also tried the above combinations with the modifications to >> > /etc/inittab file for getty: >> > >> > co:2345:respawn:/sbin/agetty <ttyS0><console> 9600 >> > >> > But no luck :(((( >> > >> > Any ideas? >> > >> > Cheers >> > Omer >> > >> > On Thu, Aug 21, 2008 at 8:06 PM, Todd Deshane >> <deshantm@gmail.com <mailto:deshantm@gmail.com> >> > <mailto:deshantm@gmail.com <mailto:deshantm@gmail.com>>> wrote: >> > >> > On Thu, Aug 21, 2008 at 12:12 PM, Omer Khalid >> > <Omer.Khalid@cern.ch> wrote: >> > > Hi, >> > > I manage to configure my xen 3.1.4 HVM installation and launch >> > the VM but >> > > "xm console <id>" seem not to work! I have a HVM Linux guest >> > running. The >> > > error I get is following: >> > > xenconsole: Could not read tty from store: No such file or >> directory >> > > Is some thing missing in my configuration? >> > >> > How is your Linux guest setup? >> > >> > You will need the appropriate console specified on the kernel >> > command line... >> > >> > hvc or xvc, I forget which is which at the moment, but you >> should >> > be able to >> > search the mailing list archives for that (try >> xen.markmail.org <http://xen.markmail.org> >> > <http://xen.markmail.org>) >> > (One is for the older xen linux kernels and one is for the >> > mainline xen linux >> > kernels) >> > >> > You will also want to make sure that the linux guest has the xen >> > console support >> > in it. >> > >> > Hope that helps, >> > Todd >> > >> > -- >> > Todd Deshane >> > http://todddeshane.net >> > check out our book: http://runningxen.com >> > >> > >> > >> > >> > -- >> > Omer >> > >> > ------------------------------------------------------- >> > CERN -- European Organization for Nuclear >> > Research, IT Department, CH-1211, >> > Geneva 23, Switzerland >> > >> > Phone: +41 (0) 22 767 2224 >> > Fax: +41 (0) 22 766 8683 >> > E-mail : Omer.Khalid@cern.ch >> > Homepage: http://cern.ch/Omer.Khalid >> > >> >> ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Xen-users mailing list >> > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> >> > http://lists.xensource.com/xen-users >> >> >> >> >> -- >> Omer >> >> ------------------------------------------------------- >> CERN -- European Organization for Nuclear >> Research, IT Department, CH-1211, >> Geneva 23, Switzerland >> >> Phone: +41 (0) 22 767 2224 >> Fax: +41 (0) 22 766 8683 >> E-mail : Omer.Khalid@cern.ch >> Homepage: http://cern.ch/Omer.Khalid >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> >> > >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Omer Khalid wrote:> > This is a server running RHEL4 with out any X Server or Graphics > layer. And I only access this server and the VM''s on it through SSH > Command line! That''s why :-)That doesn''t make any sense. I have a guest here (looks under desk) running RHEL in run level three (no graphics) on hardware that doesn''t have a working graphics console (no driver) but I can still use vnc to look at the VGA console of the guest. jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yes, indeed. I ran all my Dom0 without X and use vnc. It is definitely possible. So just give it a try in your DomU configuration file. Cheers, Alex John Haxby schrieb:> Omer Khalid wrote: >> >> This is a server running RHEL4 with out any X Server or Graphics >> layer. And I only access this server and the VM''s on it through SSH >> Command line! That''s why :-) > > That doesn''t make any sense. I have a guest here (looks under desk) > running RHEL in run level three (no graphics) on hardware that doesn''t > have a working graphics console (no driver) but I can still use vnc to > look at the VGA console of the guest. > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
VNC sessions are generally based on the virtual framebuffer device and input event frontend drivers (xenfb and xenkbd), iirc these also were recently merged with qemu to reduce code overhead. Just because it''s a text console doesn''t necessarily mean it''s not "graphic", in fact as long as it relies on framebuffer access instead of a character device it actually is. Otherwise we could natively use the xen console with HVM guests.> -----Original Message----- > From: john.haxby@oracle.com [mailto:xen-users-bounces@lists.xensource.com] > On Behalf Of John Haxby > Sent: Friday, August 22, 2008 2:35 PM > To: Omer Khalid > Cc: Alexander Hoßdorf; xen-users@lists.xensource.com > Subject: Re: [Xen-users] Xen 3.1.4: HVM Configuration > > Omer Khalid wrote: > > > > This is a server running RHEL4 with out any X Server or Graphics > > layer. And I only access this server and the VM''s on it through SSH > > Command line! That''s why :-) > > That doesn''t make any sense. I have a guest here (looks under desk) > running RHEL in run level three (no graphics) on hardware that doesn''t > have a working graphics console (no driver) but I can still use vnc to > look at the VGA console of the guest. > > jch > > _______________________________________________ > 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
Hi John, In that case probably my vnc settings are not correct; can you please provide the details of how its been configured on your machine? Do you have any other VNC client other than the qemu which came with Xen. Thanks, Omer On Fri, Aug 22, 2008 at 2:34 PM, John Haxby <john.haxby@oracle.com> wrote:> Omer Khalid wrote: > >> >> This is a server running RHEL4 with out any X Server or Graphics layer. >> And I only access this server and the VM''s on it through SSH Command line! >> That''s why :-) >> > > That doesn''t make any sense. I have a guest here (looks under desk) > running RHEL in run level three (no graphics) on hardware that doesn''t have > a working graphics console (no driver) but I can still use vnc to look at > the VGA console of the guest. > > jch >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Tammo, VNC sessions are generally based on the virtual framebuffer device and input> event frontend drivers (xenfb and xenkbd), iirc these also were recently > merged with qemu to reduce code overhead. Just because it''s a text console > doesn''t necessarily mean it''s not "graphic", in fact as long as it relies on > framebuffer access instead of a character device it actually is. Otherwise > we could natively use the xen console with HVM guests.In that case, how could i verify/configure the xenfb and xenkbd configuration. And what configuration it should be? Thanks, Omer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello folks... Sorry for my ignorance, I didn''t realize that I would need vncviewer and vncserver up and running...I will install it and will report back! Cheers Omer On Fri, Aug 22, 2008 at 5:27 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote:> Hi Tammo, > > VNC sessions are generally based on the virtual framebuffer device and >> input event frontend drivers (xenfb and xenkbd), iirc these also were >> recently merged with qemu to reduce code overhead. Just because it''s a text >> console doesn''t necessarily mean it''s not "graphic", in fact as long as it >> relies on framebuffer access instead of a character device it actually is. >> Otherwise we could natively use the xen console with HVM guests. > > > In that case, how could i verify/configure the xenfb and xenkbd > configuration. And what configuration it should be? > > Thanks, > Omer >-- Omer ------------------------------------------------------- CERN -- European Organization for Nuclear Research, IT Department, CH-1211, Geneva 23, Switzerland Phone: +41 (0) 22 767 2224 Fax: +41 (0) 22 766 8683 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I have managed to launch my HVM guest and VNC is up and running...phewwww.... But here comes another problem, my HVM fails to boot with the following output: " Booting from hard disk.. Boot from hard disk failed: not a bootable disk" FATAL: Not a bootable device " I have the following in my VM configuration file: disk=[''phy:/dev/vg1/slc4_hvm,ioemu:hda,w'',''phy:/dev/vg1/slc4_swap, ioemu:hdb,w'',''phy:/dev/vg1/athena-14.2.10,ioemu:hdc,w''] root= "/dev/hda ro" I have also tried the following combination and it also met the same fate as above :-( disk=[''phy:/dev/vg1/slc4_hvm,ioemu:hda1,w'',''phy:/dev/vg1/slc4_swap, ioemu:hda2,w'',''phy:/dev/vg1/athena-14.2.10,ioemu:hdb1,w''] root= "/dev/hda1 ro" Any ideas? Cheers Omer On Fri, Aug 22, 2008 at 8:16 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote:> Hello folks... > Sorry for my ignorance, I didn''t realize that I would need vncviewer and > vncserver up and running...I will install it and will report back! > > Cheers > Omer > > On Fri, Aug 22, 2008 at 5:27 PM, Omer Khalid <Omer.Khalid@cern.ch> wrote: > >> Hi Tammo, >> >> VNC sessions are generally based on the virtual framebuffer device and >>> input event frontend drivers (xenfb and xenkbd), iirc these also were >>> recently merged with qemu to reduce code overhead. Just because it''s a text >>> console doesn''t necessarily mean it''s not "graphic", in fact as long as it >>> relies on framebuffer access instead of a character device it actually is. >>> Otherwise we could natively use the xen console with HVM guests. >> >> >> In that case, how could i verify/configure the xenfb and xenkbd >> configuration. And what configuration it should be? >> >> Thanks, >> Omer >> > > > > -- > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users