Tungsol Filaments

a broce blog
  • Home
  • About

Archive

Archive for November, 2015

Install libguestfs-tools and add serial console access to your vm

November 13, 2015 fbroce Leave a comment

To add serial access to your vm, with Debian/Ubuntu apt-get install libguestfs-tools.
Then with vm shutdown, execute the following:

root:~# guestmount -d vmname -i /mnt
root:~# ln -s /mnt/lib/systemd/system/getty@.service /mnt/etc/systemd/system
/getty.target.wants/getty@ttyS0.service
root:~# umount /mnt

Reboot your vm and you should have serial console access.

Categories: sysadmin
RSS feed
  • Google
  • Youdao
  • Xian Guo
  • Zhua Xia
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha

Recent Posts

  • restoring rc.local with systemd
  • Add network tools
  • Upgrading to Debian Buster
  • Cloning a linux drive
  • OSX Mojave. Brew install wget

Archives

  • March 2020
  • February 2020
  • July 2019
  • January 2019
  • October 2018
  • April 2018
  • March 2018
  • October 2017
  • July 2017
  • June 2017
  • February 2017
  • September 2016
  • June 2016
  • March 2016
  • February 2016
  • November 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015
  • January 2015
  • July 2014
  • June 2014
  • May 2014
  • February 2014
  • September 2013
  • May 2013
  • April 2013
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • May 2012
  • April 2012
  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • October 2010

Categories

  • sysadmin
  • tech-tips
  • Uncategorized

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Top
Blog at WordPress.com.
  • Follow Following
    • Tungsol Filaments
    • Already have a WordPress.com account? Log in now.
    • Tungsol Filaments
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar