[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] First time xen install - Xen DomU runs, but can't find "/dev/root"



On 21/10/2013 5:28 PM, Dario Faggioli wrote:
Well, yes, in the blog post I mention setting up a PXE server, but that
is for _installing_ _Dom0_. For guests, you really don't need one, you
can just point your --location to an URL and that's it!

I recommend you trying... It at least look easier than using a local
webserver, etc.
Ooops, you are right about the PXE server. Sorry.
As far as installinf from a URL, the machine I am trying this on does not have a direct connection to the internet, hence me trying to install from a DVD image. In order to use a URL to boot I had to create my own as there were none already available (that were accessible).

When doing what? I'm usually able to 'define', 'creade', 'shutdown',
'undefine' and 'create' again.

What is your issue with that?

This is probably just my ignorance , please see my output below...
Note that "xl define" and "xl undefine" both return "command not implemented".


********************
Scenario 1, stopping and then restarting a DomU
- I can shutdown a DomU with "xm", "xl", from within the DomU with "shutdown -r now", or by rebooting Dom0. - xl seems to lose any memory of the DomU at this point (well, I can't figure out how to bring it back) and "xl list" doesn't show it while it is stopped. - xm can remember it and restart it. "xm list" will still list the stopped DomU. - "xl create" seems to want a config file, which I don't have. "xm start" just starts the DomU that has already been configured, without needing an additional config file.
********************

[root@dhcp1 ~]# xl list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----     130.5
xen1                                         4   512     1 -b----      12.5
[root@dhcp1 ~]# xm list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----    130.8
xen1                                         4   512     1 -b----     12.5
[root@dhcp1 ~]# xl shutdown xen1
[root@dhcp1 ~]# xl list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----     133.9
[root@dhcp1 ~]# xm list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----    134.2
xen1                                             512 1                13.1
[root@dhcp1 ~]# xl start xen1
command not implemented
[root@dhcp1 ~]# xm start xen1
[root@dhcp1 ~]# xl list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----     143.8
xen1                                         5   512     1 r-----       2.7
[root@dhcp1 ~]# xm list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----    144.3
xen1                                         5   512     1 r-----      3.9


********************
Scenario 2, deleting and then recreating a DomU
- I can delete a DomU with "xm destroy xen2" then "xm delete xen2"
- When trying "virt-install" - If xend is not running (it defaults to the xl toolchain?) then I cannot recreate xen2 with virt-install. - If xend is restarted, then the exact same virt-install command will recreate the xen2 DomU.
********************
[root@dhcp1 ~]# xl list
Name                                        ID   Mem VCPUs State   Time(s)
Domain-0                                     0   483     4 r-----     165.2
[root@dhcp1 ~]# xm list
Error: Unable to connect to xend: Connection refused. Is xend running?
[root@dhcp1 ~]# virt-install --paravirt --name xen2 --ram 512 --vcpus 1 -f /dev/fedora_dhcp1/xen2 --network bridge=br0 --location http://gcrowe.crowie.net/f18 --graphics none
ERROR    Guest name 'xen2' is already in use.
[root@dhcp1 ~]# xend
[root@dhcp1 ~]# virt-install --paravirt --name xen2 --ram 512 --vcpus 1 -f /dev/fedora_dhcp1/xen2 --network bridge=br0 --location http://gcrowe.crowie.net/f18 --graphics none
Starting install...
<Output truncated here, but the install proceeds normally.>





_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.