WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Problems creating a Fedora 14 domU using XCP 1.0and xe

To: "Joe Linoff" <jlinoff@xxxxxxxxxx>, "Mike McClurg" <mike.mcclurg@xxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Problems creating a Fedora 14 domU using XCP 1.0and xe
From: "Joe Linoff" <jlinoff@xxxxxxxxxx>
Date: Tue, 17 May 2011 13:40:45 -0700
Cc:
Delivery-date: Tue, 17 May 2011 13:42:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8AD4194C251EC74CB897E261038F4478599E82@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <8AD4194C251EC74CB897E261038F4478599E80@xxxxxxxxxxxxxxxxxxx><4DD2504D.7000006@xxxxxxxxxx> <8AD4194C251EC74CB897E261038F4478599E82@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwUftAaYICy9O+LTF2K8F0qJ8KQ/wAMMQWwAAi5XOA=
Thread-topic: [Xen-users] Problems creating a Fedora 14 domU using XCP 1.0and xe
Hi Mike:

Just a quick follow up. It was trivial to get things working using NFS
-- thank you. But I still can't get the http boot to work. Could there
be some sort of bug or am I just missing something?

Cheers,

Joe

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Joe Linoff
Sent: Tuesday, May 17, 2011 9:33 AM
To: Mike McClurg; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Problems creating a Fedora 14 domU using XCP
1.0and xe

Hi Mike:

Setting "other-config:install-methods=cdrom,http" didn't seem to work.
It may be that I didn't do it correctly so ran "xe vm-param-list
uuid=$uuid" to verify. The output is shown below. Apparently I am still
missing something. Do you have any ideas that might help.

+ xe vm-param-list uuid=83e4ea16-480e-bdd4-a765-c733a96e09dc
uuid ( RO)                          :
83e4ea16-480e-bdd4-a765-c733a96e09dc
                    name-label ( RW): heath-2
              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):
a0b5e3d0-6d5d-1678-71c0-e44a8e9968fc
                      children ( RO): 
             is-control-domain ( RO): false
                   power-state ( RO): running
                 memory-actual ( RO): 0
                 memory-target ( RO): <unknown>
               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):
6263f3bf-91fa-f023-0d6c-340fbb67e04b
                      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): 0; 1; 2; 3
           allowed-VIF-devices (SRO): 0; 1; 2; 3
                possible-hosts ( RO):
6d288164-43e0-4f3b-ae1a-a7302e21aec4
               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): '('struct' ('uuid'
'83e4ea16-480e-bdd4-a765-c733a96e09dc') ('allowed_operations' ('array'))
('current_operations' ('struct'
('OpaqueRef:1f1b048b-11dd-65f6-e161-711febdcd183' 'start')))
('power_state' 'Halted') ('name_label' 'heath-2') ('name_description'
'Installed via xe CLI') ('user_version' '1') ('is_a_template' ('boolean'
'0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL')
('affinity' 'OpaqueRef:NULL') ('memory_overhead' '5242880')
('memory_target' '268435456') ('memory_static_max' '268435456')
('memory_dynamic_max' '268435456') ('memory_dynamic_min' '268435456')
('memory_static_min' '134217728') ('VCPUs_params' ('struct'))
('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown'
'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash'
'restart') ('consoles' ('array')) ('VIFs' ('array')) ('VBDs' ('array'))
('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' '')
('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args'
'') ('PV_legacy_args' '') ('HVM_boot_policy' 'BIOS order')
('HVM_boot_params' ('struct' ('order' 'dc'))) ('HVM_shadow_multiplier'
('double' '1')) ('platform' ('struct' ('nx' 'false') ('acpi' 'true')
('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '')
('other_config' ('struct' ('install-methods' 'cdrom,http')
('install-repository' 'http://192.168.1.10/mnt/Fedora-14-x86_64')
('mac_seed' '67dc6d71-a880-1830-0cb0-5506920674f3'))) ('domid' '-1')
('domarch' '') ('last_boot_CPU_flags' ('struct')) ('is_control_domain'
('boolean' '0')) ('metrics'
'OpaqueRef:2491ff67-ec3b-0072-af1b-a20f7c930943') ('guest_metrics'
'OpaqueRef:NULL') ('last_booted_record' '') ('recommendations'
'<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' ('struct')) ('ha_always_run' ('boolean' '0'))
('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0'))
('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array'))
('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z'))
('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array'))
('blocked_operations' ('struct')) ('snapshot_info' ('struct'))
('snapshot_metadata' '') ('parent'
'OpaqueRef:d60bcd97-8905-8881-9ac4-9cd2561195ab') ('children' ('array'))
('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL')
('is_snapshot_from_vmpp' ('boolean' '0')))'
                   resident-on ( RO):
6d288164-43e0-4f3b-ae1a-a7302e21aec4
                      affinity ( RW): <not in database>
                  other-config (MRW): install-methods: cdrom,http;
install-repository: http://192.168.1.10/mnt/Fedora-14-x86_64; mac_seed:
67dc6d71-a880-1830-0cb0-5506920674f3
                        dom-id ( RO): 16
               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): 20110517T16:27:10Z
                  install-time ( RO): 20110517T16:27:09Z
                  VCPUs-number ( RO): 1
             VCPUs-utilisation (MRO): 
                    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): true
             protection-policy ( RW): <not in database>
         is-snapshot-from-vmpp ( RO): false
                          tags (SRW): 



Thanks,

Joe

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mike McClurg
Sent: Tuesday, May 17, 2011 3:39 AM
To: Joe Linoff; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Problems creating a Fedora 14 domU using XCP
1.0and xe

On 17/05/11 04:14, Joe Linoff wrote:
> Hi Folks:
>
> I am having trouble creating a Fedora 14 domU on a XCP 1.0 dom0
> hypervisor and am hoping that someone can help me figure out what I am
> doing wrong.

  It's probably the documentation's fault, not yours ;)

> Here is what I did (per the user's guide and reference manual):
>
> ## Step 1. Create the VM:
> # uuid=$(xe vm-install template='Other install media'
> new-name-label='test')
> ## Note: I also tried CentOS variants

RHEL 6 x86_64 may also work, but 'Other install media' is often your 
best bet.

> ## Step 2. Get the network ID
> # netwuuid=$(xe network-list bridge=xenbr0 --minimal)
>
> ## Step 3. Create the VIF
> # xe vif-create vm-uuid=$uuid \
>     network-uuid=$netwuuid \
>
>
other-config:install-repository=http://192.168.1.10/mnt/Fedora-14-x86_64

At this point, you'll also need to update other-config:install-methods 
to include http. Otherwise, it will just try to boot from the cdrom, 
which is empty.

# xe vm-param-set uuid=$uuid  other-config:install-methods=cdrom,http

> ## Step 4. Verify that the http address is correct using wget to get
the
> GPL
> # wget ://192.168.1.10/mnt/Fedora-14-x86_64/GPL
> # ls -l GPL
>
> ## Step 5. Start the Guest
> # xe vm-start uuid=$uuid
>
> ## Step 6. Get the VNC port from xenstored, first get the domid
> # domid=$(xe vm-list uuid=$uuid params=dom-id --minimal)
> # xenstore-ls -f /local/domain/$domid | grep vnc-port
> ## port is 5901
>
> ## Step 7. setup an ssh tunnel for the port on another host
> # ssh -L5901:127.0.0.1:5901 root@xxxxxxxxxxxx
>
> ## Step 8. VNC in from the other host (initiator of the ssh tunnel)
> # vncviewer localhost:5901
>
> At this point everything works and VNC connects but the boot message
is:
>
>      Boot device: CD-Rom - failure: could not read boot disk
>
>      Boot device: Hard Drive - failure: could not read boot disk
>
>
>      No bootable device.
>      Reboot or press any key to retry.
>
> The /mnt/Fedora-14-x86_64 directory was loop mounted directly from the
> Fedora CD:
>
> # mount -o loop Fedora-14-x86_64-Live-Desktop.iso /var/www/html/mnt
>
> I verified that the CD was bootable and that everything was readable
in
> the exploded directory.

If you've got an ISO image on your local network, you can also just boot

from that. You can export the directory containing the ISO as an NFS 
share, and then use `xe-mount-iso-sr host:/ISO-directory`. Once you have

the ISO directory mounted as an SR, you can then add the Fedora ISO to 
the VM as a CD:

# xe vm-cd-add vm=test device=3
cd-name='Fedora-14-x86_64-Live-Desktop.iso'

While it would work, I wouldn't recommend putting the ISO directly in 
dom0, because we only give that filesystem 4GiB to use, and it'll ruin 
your day if you run out of space on dom0.

> Errata:
>
> ## On the XCP server
> # lsb_release -a
> LSB Version:    :core-3.1-ia32:core-3.1-noarch
> Distributor ID: XCP
> Description:    XCP release 1.0.0-42052c (xcp)
> Release:        1.0.0-42052c
> Codename:       xcp
>
> # uname -a
> Linux xenserver-tcc-lab-04 2.6.32.12-0.7.1.xs1.0.0.311.170586xen #1
SMP
> Tue Feb 1 17:10:20 EST 2011 i686 i686 i386 GNU/Linux
>
> Any hints would be greatly appreciated.
>
> Thanks,
>
> Joe
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users