archive-ca.com » CA » D » DEFUNCT.CA

Total: 226

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Can’t ssh to UML instances when creating w/ valid keypair | boompty boomp
    kpartx d dev loop0 from pid 838 execute usr lib pymodules python2 7 nova utils py 143 2011 07 13 21 15 22 563 DEBUG nova utils Running cmd subprocess sudo losetup detach dev loop0 from pid 838 execute usr lib pymodules python2 7 nova utils py 143 2011 07 13 21 15 22 604 WARNING nova virt libvirt conn instance instance 0000003d ignoring error injecting data into image 3 Mapped device was not found we can only inject raw disk images dev mapper loop0p1 I tried running the kpartx commands above but they didn t return anything This was because the image I was using had no partition table To fix I effectively created a new image and copied data from the original one To begin create a spare file see this for more info cd root dd if dev zero of CentOS5 6 AMD64 new root fs bs 1 count 0 seek 1024M Now create a partition to span the entire disk replace dev loop0 with whatever losetup returns losetup show find CentOS5 6 AMD64 new root fs dev loop0 fdisk dev loop0 Now use kpartx to make the partition visible to the host and create a filesystem on that partition parted kpartx a dev loop0 mke2fs j dev mapper loop0p1 Mount the original image and copy data over losetup show find CentOS5 6 AMD64 root fs dev loop1 mkdir mnt loop 0 1 mount dev mapper loop0p1 mnt loop0 mount dev loop1 mnt loop1 cd mnt loop1 rsync a mnt loop0 Update the fstab on the new image this is necessary as the partition layout has now changed cd mnt loop0 etc sed i s ubda ubda1 g fstab cd umount mnt loop 0 1 kpartx d dev loop0 losetup d dev loop 0 1 Modify etc

    Original URL path: http://blog.defunct.ca/2011/07/14/cannot-ssh-to-uml-instances-when-creating-w-valid-keypair/ (2015-04-05)
    Open archived version from archive


  • Using UML instances on OpenStack Nova | boompty boomp
    modules chroot mnt image sed i s LABEL ROOT dev ubda g etc fstab chkconfig network on exit umount mnt image losetup d dev loop0 Note that usr lib uml modules 2 6 35 1 is provided by the user mode linux package on Ubuntu 10 10 so adjust accordingly to what you re running Also UML seems to use device dev ubda so we modify etc fstab w that Now we can bundle up the image cd root euca bundle image i CentOS5 6 AMD64 root fs euca upload bundle b uml image bucket m tmp CentOS5 6 AMD64 root fs manifest xml euca register uml image bucket CentOS5 6 AMD64 root fs manifest xml Once that s done we remove this from etc nova nova conf libvirt type qemu and add this libvirt type uml use cow images false libvirt xml template etc nova libvirt xml template Since I ve specified libvirt xml template in etc nova nova conf we need to now create that file cp a usr share pyshared nova virt libvirt xml template etc nova libvirt xml template Now open up etc nova libvirt xml template and remove the following if getVar vncserver host False graphics type vnc port 1 autoport yes keymap en us listen vncserver host end if The reason for doing this is because it appears that we run into an issue similar to the one reported in here Update I ve since created a bug report for this UML issue here Now we can restart the nova compute service and create an instance service nova compute restart euca run instances ami 778c501e k mykey t m1 tiny replace ami 778c501e with your image name which can be found by running euca describe images If your instance doesn t go into a

    Original URL path: http://blog.defunct.ca/2011/07/02/using-uml-instances-on-openstack-nova/ (2015-04-05)
    Open archived version from archive

  • OpenStack Nova install on an Ubuntu 10.10 XenServer virtual machine | boompty boomp
    use for our instances and register it cd root wget http uec images ubuntu com releases 10 04 release ubuntu 10 04 server uec amd64 tar gz uec publish tarball ubuntu 10 04 server uec amd64 tar gz mybucket Fri Jul 1 09 23 53 UTC 2011 extracting image Warning no ramdisk found assuming ramdisk none kernel lucid server uec amd64 vmlinuz virtual ramdisk none image lucid server uec amd64 img Fri Jul 1 09 24 12 UTC 2011 bundle upload kernel Fri Jul 1 09 24 14 UTC 2011 bundle upload image Fri Jul 1 09 25 23 UTC 2011 done emi ami 3d4b2b15 eri none eki aki 4eb969b8 We should now be able to list the image euca describe images IMAGE aki 4eb969b8 mybucket lucid server uec amd64 vmlinuz virtual manifest xml available public x86 64 kernel IMAGE ami 3d4b2b15 mybucket lucid server uec amd64 img manifest xml available public x86 64 machine aki 4eb969b8 Note that when using ppa nova core trunk I had to do the following to get this to work apt get install glance glance control api start I ll need to circle back to ppa nova core trunk later and see why the default install relies on glance but doesn t install it Now we create an ssh key to inject into our images and we go ahead and spawn an instance We use the ami for the image registered above ami 3d4b2b15 in this case euca add keypair mykey mykey priv chmod 600 mykey priv euca run instances ami 3d4b2b15 k mykey t m1 tiny RESERVATION r hcvy99xp test default INSTANCE i 00000002 ami 3d4b2b15 scheduling mykey test None 0 m1 tiny 2011 07 01T09 33 39Z unknown zone We should now be able to list our instances and see the status as running euca describe instances RESERVATION r hcvy99xp test default INSTANCE i 00000002 ami 3d4b2b15 192 168 0 4 192 168 0 4 running mykey test nova blog 1gb 0 m1 tiny 2011 07 01T09 33 39Z nova Note that my original instance creation failed as it was trying to by default create a KVM instance Since my hardware doesn t support KVM and I m running within a VM already I had to append this to etc nova nova conf echo libvirt type qemu etc nova nova conf service nova compute restart We should in theory be able to use UML instead of qemu see http wiki openstack org Nova UML but I haven t fully tested this More information to come My instance should now be accessible over the network ping c 1 192 168 0 4 PING 192 168 0 4 192 168 0 4 56 84 bytes of data 64 bytes from 192 168 0 4 icmp req 1 ttl 64 time 0 000 ms 192 168 0 4 ping statistics 1 packets transmitted 1 received 0 packet loss time 0ms rtt min avg max mdev 0 000 0 000 0 000 0 000 ms The

    Original URL path: http://blog.defunct.ca/2011/07/01/openstack-nova-install-on-an-ubuntu-10-10-xenserver-virtual-machine/ (2015-04-05)
    Open archived version from archive



  • Cleanly creating a Fedora 14 xen domU from an existing Fedora 14 VM | boompty boomp
    log rpm root xen initdb I then installed the Fedora 14 specific release package rpm ihv nodeps root xen fedora release 14 1 noarch Finally I went ahead and installed all Core packages a more minimal package set than Base which is what was used in the original post yum installroot xen y groupinstall Core At this point I tar d up xen and copied over to my xen dom0 Sadly this Fedora 14 domU wouldn t boot w the vmlinuz 2 6 26 2 xen amd64 kernel on Debian Lenny but fortunately I had access to a newer pv ops kernel that does work Once I copied kernel modules into the domU and did some final last configurations setting root password modifying etc fstab the VM was bootable and appeared to work fine In retrospect I could probably remove some unnecessary packages such as kernel grub and so on but that s pretty insignificant and aren t worth messing about with at this point in time This entry was posted in Linux and tagged xen Bookmark the permalink mdadm recovery speeds OpenStack Nova install on an Ubuntu 10 10 XenServer virtual machine One Response to Cleanly creating a Fedora

    Original URL path: http://blog.defunct.ca/2011/02/13/quickly-creating-xen-domu-from/ (2015-04-05)
    Open archived version from archive

  • mdadm recovery speeds | boompty boomp
    md block devices If you wish to alter the speeds for a specific block device overriding the system wide values this can be done through sys block md0 md sync speed min and sys block md0 md sync speed max replacing md0 with the name of the block device in question From the md man page While this recovery process is happening the md driver will monitor accesses to the array and will slow down the rate of recovery if other activity is happening so that normal access to the array will not be unduly affected When no other activity is happening the recovery process proceeds at full speed This entry was posted in Linux Bookmark the permalink Update EveryDNS w a dynamic IP Cleanly creating a Fedora 14 xen domU from an existing Fedora 14 VM Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008

    Original URL path: http://blog.defunct.ca/2010/06/16/mdadm-recovery-speeds/ (2015-04-05)
    Open archived version from archive

  • Update EveryDNS w/ a dynamic IP | boompty boomp
    documentation seemed quite good usr bin ruby require net http require base64 require rubygems require ifconfig require resolv enable disable debugging prints response body debug 0 everydns net details edns dyn everydns net username username password password proxy details proxy addr proxy domain com proxy port 8888 domain to update domain some domain com ifconfig IfconfigWrapper new Linux parse ip ifconfig eth0 addresses inet to s if ip Resolv DNS new getaddress domain res Net HTTP Proxy proxy addr proxy port start edns http req Net HTTP Get new index php ver 0 1 ip ip domain domain req basic auth username password response http request req puts response body if debug 1 end Using the ruby ifconfig gem is kind of unnecessary seeing as parsing ifconfig output is straight forward but things look a bit cleaner when using it Feedback welcome This entry was posted in Linux Ruby Bookmark the permalink screen mdadm recovery speeds Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August

    Original URL path: http://blog.defunct.ca/2010/04/28/update-everydns-w-a-dynamic-ip/ (2015-04-05)
    Open archived version from archive

  • screen | boompty boomp
    number of windows open and want to quickly switch to another window when you don t know the number of that window Now to benefit from this window menu you need to set window titles appropriately This can be done by hitting C a A and then entering a title for the window in question Every now and again I close windows re open and this disrupts my screen window flow when using the previous next window key combinations In this situation you can re order your windows by going to a window and then C a This enters command line mode and here you can type the following to change the current window s number number 0 In this example the current window s number will be changed to 0 This entry was posted in Linux Bookmark the permalink tsocks Update EveryDNS w a dynamic IP Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009

    Original URL path: http://blog.defunct.ca/2010/04/22/screen/ (2015-04-05)
    Open archived version from archive

  • tsocks | boompty boomp
    quick Google search turned up the following link which worked beautifully After pulling the tsocks deb package via ssh from another box and installing it was simply a matter of dumping the following into root tsocks conf server 127 0 0 1 server type 5 server port 8888 At that point I launched the SOCKS5 proxy using ssh D 8888 user remotehost Finally I was able to tsocks apt get update tsocks apt get upgrade It is possible to use tsocks a bit more transparently but as I only had to send those two commands through the proxy I didn t have any need Look at the tsocks man page for more information Lastly make sure you unset http proxy or ftp proxy if you ve set either I forgot that I tried setting http proxy and spent far too long trying to debug why tsocks wasn t working This entry was posted in Linux Bookmark the permalink Postfix etc hosts screen Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April

    Original URL path: http://blog.defunct.ca/2010/03/18/tsocks/ (2015-04-05)
    Open archived version from archive