Yueyu Lin
2010-Aug-24 09:00 UTC
[Xen-users] XCP How to install "Other install media" in XCP 0.5
Hi, all After I create a VM from "Other install media" template and add an ISO as CD to it, I can start the vm without error. But when I try to find out which vnc port to connect using [root@yueyuxcp ~]# xenstore-ls /local/domain/3/serial/0 tty = "/dev/pts/5" I can''t find the vnc port here. Then I try to shut it down [root@yueyuxcp ~]# xe vm-shutdown uuid=28cbafc1-f321-6d2f-a157-4330bc302dff You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected. vm: 28cbafc1-f321-6d2f-a157-4330bc302dff (ubuntuFromCD) I then try to use the /usr/lib/xen/bin/xenconsole 3 to connect the console, it froze there. I''m wondering if this template needs a PV aware kernel to boot? How can I make a template that can install a HVM from ISO directly. In XCP 0.5, all installation is based on repository. How can I add my own template? The vm-list for this VM looks like below: [root@yueyuxcp ~]# xe vm-list params=all uuid=28cbafc1-f321-6d2f-a157-4330bc302dff uuid ( RO) : 28cbafc1-f321-6d2f-a157-4330bc302dff name-label ( RW): ubuntuFromCD name-description ( RW): Installed via xe CLI user-version ( RW): 1 is-a-template ( RW): false is-a-snapshot ( RO): false snapshot-of ( RO): <not in database> snapshots ( RO): snapshot-time ( RO): 19700101T00:00:00Z snapshot-info ( RO): parent ( RO): 3c511a38-114b-98d3-4862-6eac1df230c7 children ( RO): is-control-domain ( RO): false power-state ( RO): running memory-actual ( RO): 268349440 memory-target ( RO): <expensive field> memory-overhead ( RO): 5242880 memory-static-max ( RW): 268435456 memory-dynamic-max ( RW): 268435456 memory-dynamic-min ( RW): 268435456 memory-static-min ( RW): 134217728 suspend-VDI-uuid ( RO): <not in database> VCPUs-params (MRW): VCPUs-max ( RW): 1 VCPUs-at-startup ( RW): 1 actions-after-shutdown ( RW): Destroy actions-after-reboot ( RW): Restart actions-after-crash ( RW): Restart console-uuids (SRO): 04343680-bbfb-9832-918a-31b5e303b670 platform (MRW): timeoffset: 0; nx: false; acpi: true; apic: true; pae: true; viridian: true allowed-operations (SRO): changing_dynamic_range; hard_reboot; hard_shutdown; pause; snapshot current-operations (SRO): blocked-operations (MRW): allowed-VBD-devices (SRO): <expensive field> allowed-VIF-devices (SRO): <expensive field> possible-hosts ( RO): <expensive field> HVM-boot-policy ( RW): BIOS order HVM-boot-params (MRW): order: dc HVM-shadow-multiplier ( RW): 1.000 PV-kernel ( RW): PV-ramdisk ( RW): PV-args ( RW): PV-legacy-args ( RW): PV-bootloader ( RW): PV-bootloader-args ( RW): last-boot-CPU-flags ( RO): last-boot-record ( RO): <expensive field> resident-on ( RO): b9ab603e-4658-4b1e-8c5c-6e0ad11e4e0b affinity ( RW): <not in database> other-config (MRW): last_shutdown_time: 20100824T08:38:13Z; last_shutdown_action: Destroy; last_shutdown_initiator: external; last_shutdown_reason: halted; mac_seed: 077cc4e6-595f-2e66-a898-1b2ca2057a92; install-methods: cdrom dom-id ( RO): 4 recommendations ( RO): <restrictions><restriction field="memory-static-max" max="34359738368" /><restriction field="vcpus-max" max="8" /><restriction property="number-of-vbds" max="7" /><restriction property="number-of-vifs" max="7" /></restrictions> xenstore-data (MRW): ha-always-run ( RW): false ha-restart-priority ( RW): blobs ( RO): start-time ( RO): 20100824T08:39:16Z install-time ( RO): 20100824T07:18:54Z VCPUs-number ( RO): 1 VCPUs-utilisation (MRO): <expensive field> os-version (MRO): <not in database> PV-drivers-version (MRO): <not in database> PV-drivers-up-to-date ( RO): <not in database> memory (MRO): <not in database> disks (MRO): <not in database> networks (MRO): <not in database> other (MRO): <not in database> live ( RO): <not in database> guest-metrics-last-updated ( RO): <not in database> cooperative ( RO): <expensive field> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
George Shuklin
2010-Aug-24 09:04 UTC
Re: [Xen-users] XCP How to install "Other install media" in XCP 0.5
you can use --force option to shutdown uncooperative guests. В Втр, 24/08/2010 в 02:00 -0700, Yueyu Lin пишет:> Hi, all > After I create a VM from "Other install media" template and add an ISO as CD to it, I can start the vm without error. > But when I try to find out which vnc port to connect using > > [root@yueyuxcp ~]# xenstore-ls /local/domain/3/serial/0 > tty = "/dev/pts/5" > > I can''t find the vnc port here. > > Then I try to shut it down > > [root@yueyuxcp ~]# xe vm-shutdown uuid=28cbafc1-f321-6d2f-a157-4330bc302dff > You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected. > vm: 28cbafc1-f321-6d2f-a157-4330bc302dff (ubuntuFromCD) > > I then try to use the /usr/lib/xen/bin/xenconsole 3 to connect the console, it froze there. > > I''m wondering if this template needs a PV aware kernel to boot? How can I make a template that can install a HVM from ISO directly. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yueyu Lin
2010-Aug-24 09:06 UTC
Re: [Xen-users] XCP How to install "Other install media" in XCP 0.5
I tried and shut it down. But I still have no clue how to install OS using "Other install media" template. On Aug 24, 2010, at 2:04 AM, George Shuklin wrote:> you can use --force option to shutdown uncooperative guests. > > В Втр, 24/08/2010 в 02:00 -0700, Yueyu Lin пишет: >> Hi, all >> After I create a VM from "Other install media" template and add an ISO as CD to it, I can start the vm without error. >> But when I try to find out which vnc port to connect using >> >> [root@yueyuxcp ~]# xenstore-ls /local/domain/3/serial/0 >> tty = "/dev/pts/5" >> >> I can''t find the vnc port here. >> >> Then I try to shut it down >> >> [root@yueyuxcp ~]# xe vm-shutdown uuid=28cbafc1-f321-6d2f-a157-4330bc302dff >> You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected. >> vm: 28cbafc1-f321-6d2f-a157-4330bc302dff (ubuntuFromCD) >> >> I then try to use the /usr/lib/xen/bin/xenconsole 3 to connect the console, it froze there. >> >> I''m wondering if this template needs a PV aware kernel to boot? How can I make a template that can install a HVM from ISO directly. >> > > > > _______________________________________________ > 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
George Shuklin
2010-Aug-24 10:06 UTC
Re: [Xen-users] XCP How to install "Other install media" in XCP 0.5
As I wrote few days ago, you must access to VNC on localhost of XCP host. You can do it by tunneling via SSH (see in maillist archive) or via OpenXenManger. /usr/lib/xen/bin/xenconsole - suck and shall not be used standalone. В Втр, 24/08/2010 в 02:06 -0700, Yueyu Lin пишет:> I tried and shut it down. > But I still have no clue how to install OS using "Other install media" template. > > On Aug 24, 2010, at 2:04 AM, George Shuklin wrote: > > > you can use --force option to shutdown uncooperative guests. > > > > В Втр, 24/08/2010 в 02:00 -0700, Yueyu Lin пишет: > >> Hi, all > >> After I create a VM from "Other install media" template and add an ISO as CD to it, I can start the vm without error. > >> But when I try to find out which vnc port to connect using > >> > >> [root@yueyuxcp ~]# xenstore-ls /local/domain/3/serial/0 > >> tty = "/dev/pts/5" > >> > >> I can''t find the vnc port here. > >> > >> Then I try to shut it down > >> > >> [root@yueyuxcp ~]# xe vm-shutdown uuid=28cbafc1-f321-6d2f-a157-4330bc302dff > >> You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected. > >> vm: 28cbafc1-f321-6d2f-a157-4330bc302dff (ubuntuFromCD) > >> > >> I then try to use the /usr/lib/xen/bin/xenconsole 3 to connect the console, it froze there. > >> > >> I''m wondering if this template needs a PV aware kernel to boot? How can I make a template that can install a HVM from ISO directly. > >> > > > > > > > > _______________________________________________ > > 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
yueyulin
2010-Aug-24 10:10 UTC
Re: [Xen-users] XCP How to install "Other install media" in XCP 0.5
As you see, it doesn''t generate vncterm port... Only one tty console shows up... Sent from my iPhone On Aug 24, 2010, at 3:06 AM, George Shuklin <george.shuklin@gmail.com> wrote:> As I wrote few days ago, you must access to VNC on localhost of XCP > host. You can do it by tunneling via SSH (see in maillist archive) or > via OpenXenManger. > > /usr/lib/xen/bin/xenconsole - suck and shall not be used standalone. > > В Втр, 24/08/2010 в 02:06 -0700, Yueyu Lin пишет: >> I tried and shut it down. >> But I still have no clue how to install OS using "Other install media" template. >> >> On Aug 24, 2010, at 2:04 AM, George Shuklin wrote: >> >>> you can use --force option to shutdown uncooperative guests. >>> >>> В Втр, 24/08/2010 в 02:00 -0700, Yueyu Lin пишет: >>>> Hi, all >>>> After I create a VM from "Other install media" template and add an ISO as CD to it, I can start the vm without error. >>>> But when I try to find out which vnc port to connect using >>>> >>>> [root@yueyuxcp ~]# xenstore-ls /local/domain/3/serial/0 >>>> tty = "/dev/pts/5" >>>> >>>> I can''t find the vnc port here. >>>> >>>> Then I try to shut it down >>>> >>>> [root@yueyuxcp ~]# xe vm-shutdown uuid=28cbafc1-f321-6d2f-a157-4330bc302dff >>>> You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected. >>>> vm: 28cbafc1-f321-6d2f-a157-4330bc302dff (ubuntuFromCD) >>>> >>>> I then try to use the /usr/lib/xen/bin/xenconsole 3 to connect the console, it froze there. >>>> >>>> I''m wondering if this template needs a PV aware kernel to boot? How can I make a template that can install a HVM from ISO directly. >>>> >>> >>> >>> >>> _______________________________________________ >>> 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 > > > > _______________________________________________ > 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
George Shuklin
2010-Aug-24 11:18 UTC
Re: [Xen-users] XCP How to install "Other install media" in XCP 0.5
You are completly miss current way XCP working with consoles. I''ll write article in Xenwiki about it. But I don''t know part about XenAPI and console class in it, so it will describe only part about access to consoles ''by hand''. (i''ll send separate letter to maillist when finish). В Втр, 24/08/2010 в 03:10 -0700, yueyulin пишет:> As you see, it doesn''t generate vncterm port... > Only one tty console shows up... > Sent from my iPhone > > On Aug 24, 2010, at 3:06 AM, George Shuklin <george.shuklin@gmail.com> wrote: > > > As I wrote few days ago, you must access to VNC on localhost of XCP > > host. You can do it by tunneling via SSH (see in maillist archive) or > > via OpenXenManger. > > > > /usr/lib/xen/bin/xenconsole - suck and shall not be used standalone. > > > > В Втр, 24/08/2010 в 02:06 -0700, Yueyu Lin пишет: > >> I tried and shut it down. > >> But I still have no clue how to install OS using "Other install media" template. > >> > >> On Aug 24, 2010, at 2:04 AM, George Shuklin wrote: > >> > >>> you can use --force option to shutdown uncooperative guests. > >>> > >>> В Втр, 24/08/2010 в 02:00 -0700, Yueyu Lin пишет: > >>>> Hi, all > >>>> After I create a VM from "Other install media" template and add an ISO as CD to it, I can start the vm without error. > >>>> But when I try to find out which vnc port to connect using > >>>> > >>>> [root@yueyuxcp ~]# xenstore-ls /local/domain/3/serial/0 > >>>> tty = "/dev/pts/5" > >>>> > >>>> I can''t find the vnc port here. > >>>> > >>>> Then I try to shut it down > >>>> > >>>> [root@yueyuxcp ~]# xe vm-shutdown uuid=28cbafc1-f321-6d2f-a157-4330bc302dff > >>>> You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected. > >>>> vm: 28cbafc1-f321-6d2f-a157-4330bc302dff (ubuntuFromCD) > >>>> > >>>> I then try to use the /usr/lib/xen/bin/xenconsole 3 to connect the console, it froze there. > >>>> > >>>> I''m wondering if this template needs a PV aware kernel to boot? How can I make a template that can install a HVM from ISO directly. > >>>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> 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 > > > > > > > > _______________________________________________ > > 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users