I have been following the instructions on the server set up and everything is going great. I've been using linux for several years, on and off. I was following the instruction on setting up a virtual machine and everything was going well, until I ran the script. This was the result:
donrd@DfamMedia:~/MyScripts$ sudo ./MyVMBuilder.sh
2012-07-05 23:10:39,731 INFO : Calling hook: preflight_check
2012-07-05 23:10:39,735 INFO : Calling hook: set_defaults
2012-07-05 23:10:39,736 INFO : Calling hook: bootstrap
2012-07-05 23:10:39,896 INFO : Cleaning up
2012-07-05 23:10:39,897 ERROR : Process (['/usr/sbin/debootstrap', '--arch=amd64', 'precise', '/tmp/tmprO4t1b', 'http://archive.ubuntu.com/ubuntu']) returned 1. stdout: I: Retrieving Release
E: Failed getting release file
http://archive.ubuntu.com/ubuntu/dists/precise/Release, stderr:
Traceback (most recent call last):
File "/usr/bin/vmbuilder", line 24, in <module>
cli.main()
File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 216, in main
distro.build_chroot()
File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 83, in build_chroot
self.call_hooks('bootstrap')
File "/usr/lib/python2.7/dist-packages/VMBuilder/distro.py", line 67, in call_hooks
call_hooks(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 165, in call_hooks
getattr(context, func, log_no_such_method)(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py", line 136, in bootstrap
self.suite.debootstrap()
File "/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 269, in debootstrap
run_cmd(*cmd, **kwargs)
File "/usr/lib/python2.7/dist-packages/VMBuilder/util.py", line 120, in run_cmd
raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.exception.VMBuilderException: Process (['/usr/sbin/debootstrap', '--arch=amd64', 'precise', '/tmp/tmprO4t1b', 'http://archive.ubuntu.com/ubuntu']) returned 1. stdout: I: Retrieving Release
E: Failed getting release file
http://archive.ubuntu.com/ubuntu/dists/precise/Release, stderr:
Here is my script:
vmbuilder kvm ubuntu \
--dest=/home/donrd/VirtualMachines \
--overwrite \
--mem=1024 \
--cpus=1 \
--rootsize=7168 \
--swapsize=1024 \
--ip=192.168.5.201 \
--mask=255.255.255.0 \
--bcast=192.168.5.255 \
--gw=192.168.5.10 \
--addpkg=openssh-server \
--addpkg=vim \
--addpkg=cron \
--addpkg=acpid \
--arch=amd64 \
--suite=precise \
--flavour virtual \
--components main,universe,restricted \
--hostname IcieMinecraft \
--user donrd \
--pass mypassword \
--libvirt qemu:///system \
--bridge=br0 ;
Any ideas on what happened, would be appreciated. There are a couple questions, though, I don't recognize the '--bridge=br0', I haven't set up a network bridge, if that is what it is reffering to. Thanks in advance.
Don