Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost xen]# ./prepare_guest.sh
- + GUEST_PASSWORD=secrete
- + STAGING_DIR=stage
- + DO_TGZ=1
- + KERNEL_VERSION=3.0.0-12-virtual
- + '[' '!' -d stage ']'
- + apt-get install debootstrap
- ./prepare_guest.sh: line 13: apt-get: command not found
- + debootstrap --arch amd64 oneiric stage http://us.archive.ubuntu.com/ubuntu/
- ./prepare_guest.sh: line 14: debootstrap: command not found
- + cat
- ./prepare_guest.sh: line 18: stage/etc/apt/sources.list: No such file or directory
- + chroot stage apt-get update
- chroot: cannot change root directory to stage: No such file or directory
- + chroot stage apt-get install -y linux-image-3.0.0-12-virtual
- chroot: cannot change root directory to stage: No such file or directory
- + chroot stage apt-get install -y cracklib-runtime curl wget ssh openssh-server tcpdump ethtool
- chroot: cannot change root directory to stage: No such file or directory
- + chroot stage apt-get install -y curl wget ssh openssh-server python-pip git vim-nox sudo
- chroot: cannot change root directory to stage: No such file or directory
- + chroot stage pip install xenapi
- chroot: cannot change root directory to stage: No such file or directory
- + XEGUEST=xe-guest-utilities_5.6.100-651_amd64.deb
- + wget http://images.ansolabs.com/xen/xe-guest-utilities_5.6.100-651_amd64.deb -O xe-guest-utilities_5.6.100-651_amd64.deb
- --2012-03-19 15:34:30-- http://images.ansolabs.com/xen/xe-guest-utilities_5.6.100-651_amd64.deb
- Resolving images.ansolabs.com... 173.203.89.94
- Connecting to images.ansolabs.com|173.203.89.94|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 55460 (54K) [application/octet-stream]
- Saving to: `xe-guest-utilities_5.6.100-651_amd64.deb'
- 100%[======================================>] 55,460 --.-K/s in 0.005s
- 2012-03-19 15:34:32 (10.3 MB/s) - `xe-guest-utilities_5.6.100-651_amd64.deb' saved [55460/55460]
- + cp xe-guest-utilities_5.6.100-651_amd64.deb stage/root
- cp: cannot create regular file `stage/root': No such file or directory
- + chroot stage dpkg -i /root/xe-guest-utilities_5.6.100-651_amd64.deb
- chroot: cannot change root directory to stage: No such file or directory
- + chroot stage update-rc.d -f xe-linux-distribution remove
- chroot: cannot change root directory to stage: No such file or directory
- + chroot stage update-rc.d xe-linux-distribution defaults
- chroot: cannot change root directory to stage: No such file or directory
- + mkdir -p stage/usr/share/cracklib
- + echo a
- + chroot stage cracklib-packer
- chroot: cannot run command `cracklib-packer': No such file or directory
- + chroot stage pwconv
- chroot: cannot run command `pwconv': No such file or directory
- + echo root:secrete
- + chroot stage chpasswd
- chroot: cannot run command `chpasswd': No such file or directory
- + rm -f stage/etc/localtime
- + chroot stage groupadd libvirtd
- chroot: cannot run command `groupadd': No such file or directory
- + chroot stage useradd stack -s /bin/bash -d /opt/stack -G libvirtd
- chroot: cannot run command `useradd': No such file or directory
- + echo stack:secrete
- + chroot stage chpasswd
- chroot: cannot run command `chpasswd': No such file or directory
- + echo 'stack ALL=(ALL) NOPASSWD: ALL'
- ./prepare_guest.sh: line 60: stage/etc/sudoers: No such file or directory
- + chroot stage chown -R stack /opt/stack
- chroot: cannot run command `chown': No such file or directory
- + echo 'export PS1='\''\u@\H:\w\$ '\'''
- ./prepare_guest.sh: line 66: stage/opt/stack/.bashrc: No such file or directory
- + echo 'export PS1='\''\u@\H:\w\$ '\'''
- ./prepare_guest.sh: line 67: stage/root/.bashrc: No such file or directory
- + echo 'export PS1='\''\u@\H:\w\$ '\'''
- ./prepare_guest.sh: line 68: stage/etc/profile: No such file or directory
- + setup_vimrc stage/root/.vimrc
- + '[' '!' -e stage/root/.vimrc ']'
- + cat
- ./prepare_guest.sh: line 73: stage/root/.vimrc: No such file or directory
- + setup_vimrc stage/opt/stack/.vimrc
- + '[' '!' -e stage/opt/stack/.vimrc ']'
- + cat
- ./prepare_guest.sh: line 73: stage/opt/stack/.vimrc: No such file or directory
- + '[' 1 = 1 ']'
- + rm -f stage.tgz
- + tar cfz stage.tgz stage
- [root@localhost xen]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement