wiki:TipAndDoc/VM/Xen

Version 2 (modified by mitty, 9 years ago) (diff)

--

Xen

Xen with Ubuntu lucid

  • https://help.ubuntu.com/community/Xen
    • Maverick Notes (Xen 4.0.1 pvops on Ubuntu 10.10)

      The Xen packages that come with Ubuntu 10.10 ubuntu-xen-desktop and ubuntu-xen-server have broken dependencies. Therefore, we will have to download Xen source and build it.

force install ubuntu-xen-server

  • 結論としては「失敗」
  • $ sudo aptitude install -R ubuntu-xen-server
    The following packages are BROKEN:
      ubuntu-xen-server
    The following NEW packages will be installed:
      libc6-xen libsdl1.2debian{a} libsdl1.2debian-alsa{a} linux-generic-pae
      linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server
      python-dev{a} python-xen-3.3 python2.6-dev{a} xen-docs-3.3
      xen-hypervisor-3.3 xen-utils-3.3
    The following packages are RECOMMENDED but will NOT be installed:
      libc6-dev
    0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
    Need to get 39.3MB/39.5MB of archives. After unpacking 120MB will be used.
    The following packages have unmet dependencies:
      ubuntu-xen-server: Depends: xen-tools which is a virtual package.
    The following actions will resolve these dependencies:
    
    Keep the following packages at their current version:
    ubuntu-xen-server [Not Installed]
    
    Score is -9881
    
    Accept this solution? [Y/n/q/?] Y
    The following NEW packages will be installed:
      libc6-xen libsdl1.2debian{a} libsdl1.2debian-alsa{a} linux-generic-pae
      linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server
      python-dev{a} python-xen-3.3 python2.6-dev{a} xen-docs-3.3
      xen-hypervisor-3.3 xen-utils-3.3
    The following packages are RECOMMENDED but will NOT be installed:
      libc6-dev
    0 packages upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
    Need to get 39.3MB/39.5MB of archives. After unpacking 120MB will be used.
    Do you want to continue? [Y/n/?]
    
    (snip)
    
    Processing triggers for python-central ...
    Setting up xen-utils-3.3 (3.3.0-1ubuntu11) ...
    update-rc.d: warning: xend stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (S 0 1 6)
    grep: /proc/xen/capabilities: No such file or directory
    update-rc.d: warning: xendomains start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 4 5)
    update-rc.d: warning: xendomains stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 1 2 6)
    
    (snip)
    
  • $ uname -a
    Linux milly 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 2010 i686 GNU/Linux
    

cannot start xend

  • $ sudo service xend start
    grep: /proc/xen/capabilities: No such file or directory
    

remove xen 3.3

  • $ sudo vim /etc/fstab
    xenfs /proc/xen xenfs defaults 0 0
    

    An error occured while mounting /proc/xen

  • $ sudo aptitude remove -R \
    >   libc6-xen libsdl1.2debian libsdl1.2debian-alsa linux-generic-pae\
    >   linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server\
    >   python-dev python-xen-3.3 python2.6-dev xen-docs-3.3\
    >   xen-hypervisor-3.3 xen-utils-3.3
    
    The following packages will be REMOVED:
      libc6-xen libsdl1.2debian libsdl1.2debian-alsa linux-generic-pae
      linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server
      python-dev python-xen-3.3 python2.6-dev xen-docs-3.3 xen-hypervisor-3.3
      xen-utils-3.3
    0 packages upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
    

Attachments (7)

Download all attachments as: .zip