<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>password &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/password/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Tue, 24 Sep 2019 08:22:38 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Change Ubuntu Cloud Image Password</title>
		<link>https://blog.richliu.com/2017/08/31/2165/change-ubuntu-cloud-image-password/</link>
					<comments>https://blog.richliu.com/2017/08/31/2165/change-ubuntu-cloud-image-password/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Thu, 31 Aug 2017 07:49:25 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=2165</guid>

					<description><![CDATA[<p>Ubuntu cloud image is very good for deploy a simple qem [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2017/08/31/2165/change-ubuntu-cloud-image-password/">Change Ubuntu Cloud Image Password</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Ubuntu cloud image is very good for deploy a simple qemu image system.<br />But the image has it owns password and initial script. </p>



<span id="more-2165"></span>



<p>

If want to use it, it needs to add new username and password into it.<br />and remove some packages.Download cloud Image from ubuntu, ex: download Ubuntu Zesty Cloud Image

</p>



<pre class="wp-block-preformatted">wget https://cloud-images.ubuntu.com/zesty/current/zesty-server-cloudimg-arm64.img </pre>



<p>

If locate in Taiwan, there is Taiwan mirror site,http://ftp.yzu.edu.tw/Linux/ubuntu-cloud-images/, it would be fast then cloud-images.ubuntu.com

</p>



<pre class="wp-block-preformatted">wget http://ftp.yzu.edu.tw/Linux/ubuntu-cloud-images/zesty/current/zesty-server-cloudimg-arm64.img</pre>



<p> Zesty only has UEFI image, so, there is no -disk1 or -uefi postfix keyword. </p>



<p><strong>If used bionic (Ubuntu 18.04), if you found change password function doesn&#8217;t work. <br />Please shutdown this image (suppose run with QEMU) and run change password command again . <br /><br />Suppose that something modify password when booting on Ubuntu 18.04.</strong></p>



<p>Install backdoor-image package, this program can help to install new username and password into cloud image. </p>



<pre class="wp-block-preformatted"><del>apt install bzr qemu-utils  <br />bzr branch lp:~smoser/+junk/backdoor-image  </del></pre>



<pre class="wp-block-preformatted">sudo apt-get install -qy cloud-image-utils git
git clone https://gist.github.com/8c65b8771d5ab1d99c44c285323dfff6.git backdoor-image</pre>



<p>Add new password, but first account is not work for me most time, so, I would like to add new username and password. (note: please don&#8217;t use this as default password on business purpose. )</p>



<pre class="wp-block-preformatted">cd backdoor-image  
sudo ./backdoor-image --user ubuntu --password ubuntu --password-auth ../zesty-server-cloudimg-arm64.img 
sudo ./backdoor-image --user test --password 123456 --password-auth ../zesty-server-cloudimg-arm64.img </pre>



<p>After boot into virtual machine with this image,  it can remove unnecessary packages.</p>



<pre class="wp-block-preformatted">sudo apt remove cloud-initramfs-copymods cloud-init</pre>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2017/08/31/2165/change-ubuntu-cloud-image-password/">Change Ubuntu Cloud Image Password</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2017/08/31/2165/change-ubuntu-cloud-image-password/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
