wiki:InvirtSetupNotes

Version 4 (modified by glasgall, 11 years ago) (diff)

--

These are notes I made while creating a new xvm hypervisor on Precise:

  • create schroot with 'sbuild-createchroot /srv/chroot/precise-amd64-sbuild http://mirrors.mit.edu/ubuntu'
  • defang init inside the schroot:
    dpkg-divert --local /sbin/initctl
    mv /sbin/initctl /sbin/initctl.distrib
    ln -s /bin/true /sbin/initctl
    
  • created /usr/sbin/policy-rc.d inside the chroot, containing:
    #!/bin/sh
    
    exit 101
    
  • Right now, to build from a tag instead of a branch name with the invirtibuilder, you need to specify the commit that the tag points to, with the syntax
    (tagname)^{} 
    
    I'll fix this.
  • `create-sbuildchroot' didn't install any locales, so I had to:
    apt-get install --no-install-recommends language-pack-en
    
    (--no-install-recommends because otherwise it pulls in bits of Firefox)
  • Xen: if you create a hypervisor VM with virt-install or friends, you'll need to go back in afterwards and turn all the virtio devices back to emulated ones. Xen straight up cannot deal with them and will fail in mysterious ways.