<?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>Proxmox Archives - Wiredwolf Canada</title>
	<atom:link href="https://catastrophe.wiredwolf.com/category/proxmox/feed/" rel="self" type="application/rss+xml" />
	<link>https://catastrophe.wiredwolf.com/category/proxmox/</link>
	<description></description>
	<lastBuildDate>Sat, 17 Feb 2024 05:40:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Proxmox &#8211; Post 2</title>
		<link>https://catastrophe.wiredwolf.com/proxmox-post-2/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 17 Feb 2024 05:40:45 +0000</pubDate>
				<category><![CDATA[Microsoft Server]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Proxmox]]></category>
		<guid isPermaLink="false">https://catastrophe.wiredwolf.com/?p=22477</guid>

					<description><![CDATA[<p>As the trials continue, so do the posts. For this post I am relaying what I've discovered about trying to migrate a VM from VMware to Promox VE. The original VM: 4 vCore x 1 socket 8 GB memory 1 x 250 GiB VMDK 1 x 1.1 TiB VMDK Windows 2016 Standard Granted, I have  [...]</p>
<p>The post <a href="https://catastrophe.wiredwolf.com/proxmox-post-2/">Proxmox &#8211; Post 2</a> appeared first on <a href="https://catastrophe.wiredwolf.com">Wiredwolf Canada</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As the trials continue, so do the posts.</p>
<p>For this post I am relaying what I&#8217;ve discovered about trying to migrate a VM from VMware to Promox VE.</p>
<p>The original VM:</p>
<ul>
<li>4 vCore x 1 socket</li>
<li>8 GB memory</li>
<li>1 x 250 GiB VMDK</li>
<li>1 x 1.1 TiB VMDK</li>
<li>Windows 2016 Standard</li>
</ul>
<p>Granted, I have made things more difficult by having multiple network segments.&nbsp; In my last post I think I mentioned setting up multiple VLANs, Bridges, and Interfaces in Proxmox.&nbsp; This was because I&#8217;ve gone back and forth between two networks, and my Synology NAS straddles both.&nbsp; I ended up adding the Synology NAS to as storage to the same Promox host twice, once per network, to hopefully make network access more efficient to the mass storage device.</p>
<p>Over the past week I have been working with the ovftool to migrate the file server to Promox, each time taking in excess of 24 hours and inevitable session timeouts, causing the import to stall and ultimately fail.&nbsp; Since you cannot pick up where you left off (that would be a sweet feature to ask for) the process has been started multiple times.&nbsp; This last attempt today, however, completed in just 8 hours successfully, so evidently my theory on network traffic efficiency won out.</p>
<p>The first step &#8211; use the VMware ovftool (installed to Proxmox VE server) to import the desired VM:</p>
<p>ovftool &#8211;overwrite vi://192.168.155.81/FileServ /pve-zfs</p>
<p>The second step &#8211; use qm to import the VM to Promox:</p>
<p>qm importovf 210 /pve-zfs/FileServ.ovf /pve-zfs</p>
<p>Once completed, the VM showed up in Proxmox as expected, as ID 210, but without a network interface (which is also expected).</p>
<p>First challenge &#8211; machine is not bootable.</p>
<p>Referencing Promox support documentation on importing VMs:&nbsp; <a href="https://pve.proxmox.com/wiki/Migrate_to_Proxmox_VE#Post_Migration">Migrate to Proxmox VE &#8211; Proxmox VE</a></p>
<p>Convert the SCSI disks to IDE or SATA.&nbsp;&nbsp;</p>
<ul>
<li>Detach disk</li>
<li>Change format to IDE or Sata</li>
<li>Connect&nbsp;</li>
</ul>
<p>Still no joy.&nbsp; Disks were converted fine.&nbsp;&nbsp;<br />
I then added a CDROM to the VM and booted to a Windows Server 2016 install media ISO &#8211; confirmed that C:\ is the %systemroot%.&nbsp;&nbsp;</p>
<p>I then went back to the hardware and made a few edits:</p>
<ol>
<li>Converted the Machine version to q35 from default i440fx</li>
<li>Converted the SCSI Controller to PVSCSI</li>
<li>Converted the Processors from kvm64 to host</li>
</ol>
<p>Still no joy &#8211; machine does appear to boot it just can&#8217;t find a boot partition.</p>
<p>Maybe the OVF will give me some insights? Before getting that desperate, I tried one last thing &#8211; I switched the BIOS from SeaBIOS to OVMF (UEFI).</p>
<p>Bingo &#8211; the machine instantly booted successfully.</p>
<p>Lesson learned &#8211; don&#8217;t rely on the qm importovf to properly read the OVF and translate it to the same profile in Proxmox.&nbsp; Make sure you have your hardware profile from VMware before&nbsp;</p>
<p>The post <a href="https://catastrophe.wiredwolf.com/proxmox-post-2/">Proxmox &#8211; Post 2</a> appeared first on <a href="https://catastrophe.wiredwolf.com">Wiredwolf Canada</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Proxmox &#8211; Post 1</title>
		<link>https://catastrophe.wiredwolf.com/proxmox-post-1/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 15 Feb 2024 01:46:48 +0000</pubDate>
				<category><![CDATA[Proxmox]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[clusterig]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxmox]]></category>
		<category><![CDATA[storage]]></category>
		<guid isPermaLink="false">https://catastrophe.wiredwolf.com/?p=22474</guid>

					<description><![CDATA[<p>As of a couple of weeks ago I have started working with Promox.  Now that the 'free' options for premium hypervisors are starting to dry up (Win2022 Hyper-V - does not exist; VMware is pulling all non-subscription licensing) I can see there will be a growing trend towards less mainstream hypervisors. Proxmox has actually been  [...]</p>
<p>The post <a href="https://catastrophe.wiredwolf.com/proxmox-post-1/">Proxmox &#8211; Post 1</a> appeared first on <a href="https://catastrophe.wiredwolf.com">Wiredwolf Canada</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As of a couple of weeks ago I have started working with Promox.&nbsp; Now that the &#8216;free&#8217; options for premium hypervisors are starting to dry up (Win2022 Hyper-V &#8211; does not exist; VMware is pulling all non-subscription licensing) I can see there will be a growing trend towards less mainstream hypervisors.</p>
<p>Proxmox has actually been around for a while.&nbsp; In essence, it&#8217;s a web-skinned Linux KVM.&nbsp; Proxmox is built on a Debian build, and heavily relies on the operator to be somewhat proficient with Linux.&nbsp; While it takes some of the guesswork out of the Linux experience, there is no way an operator will be able to fully run Proxmox without dropping to bash occasionally.</p>
<p>Initially I was very impressed with Proxmox.&nbsp; It installs very easily and the web console is both intuitive and provides quite a lot of help.&nbsp; After watching a few training videos I could see that importing VMs can be done numerous ways, and that networking appeared to be fairly flexible.As I continued down the road of converting my ESXi 6.7 hosts, though, I started to see where Proxmox still has a ways to go.</p>
<p>My first trial was to install Windows 10.&nbsp; This went quite smoothly and I was able to load the VirtIO disk drivers into the install without too much difficulty, and get the VM booted.&nbsp; After that, though, I encountered numerous issues with the VirtIO supported drivers and the Windows 10 image.&nbsp; After the driver package and guest software for VirtIO was installed, it took no less than 2 hours to boot the image again.&nbsp; It took quite a while to figure out that the issues were with VirtIO, so 3 builds later I was on the SeaBIOS with the default drivers and found that to be stable.&nbsp; Not as quick as with the VirtIO driver set (when it did eventually boot to a desktop) but stable and far more reasonable boot times.</p>
<p>My second trial was to add storage.&nbsp; This was relatively easy.&nbsp; On my second Proxmox node I used an old Datto Siris box I&#8217;d reset.&nbsp; It has JBOD, no RAID to speak of, so I set up ZFS.&nbsp; Within a couple of minutes I&#8217;d wiped out the VMFS 6 partitions and set up a single solid ZFS volume.&nbsp; I also have a Synology NAS &#8211; 4 NICs, 4 Bays.&nbsp; I went the easy route and just set up an SMB/CIFS share and connected to Proxmox.</p>
<p>The third trial was a bit more daunting.&nbsp; On my first Promox node I&#8217;d already created a Windows 10 instance.&nbsp; My second node had nothing on it.&nbsp; I set up the second node to be the Cluster to join, then discovered that the first node couldn&#8217;t join the cluster because it already had a VM running on it.&nbsp; So I set up the first node to be the Cluster to join, and discovered that in the Web UI there is absolutely no way to &#8216;unjoin&#8217; or even remove the cluster config.&nbsp; Now I had 2 nodes, each believing they were the master node.</p>
<p>After a lot of searching I finally figured out how to remove the cluster info from both servers so I could try again.</p>
<p>To Remove a Node:</p>
<ol>
<li>SSH to host (better to <strong>not</strong> use the Web UI Shell for this)</li>
<li>Check nodes<br />
pvecm nodes</li>
<li>Identify the node you want to remove by it&#8217;s Node id</li>
<li>Remove the node<br />
pvecm delnode &lt;nodeid&gt;</li>
<li>Now we want to remove the Cluster
<ol>
<li>Set the cluster to indicate that there&#8217;s now only the 1 member<br />
pvecm expected 1</li>
<li>Stop the Cluster Service<br />
systemctl stop pve-cluster</li>
<li>Start the PVE local service<br />
pmxcfs -l</li>
<li>Delete the PVE cluster conf files and the lock file<br />
rm -r /etc/pve/cluster.conf /etc/pve/corosync.conf<br />
rm -r /etc/cluster/cluster.conf /etc/corosync/corosync.conf<br />
rm /var/lib/pve-cluster/.pmxcfs.lockfile</li>
<li>Stop the Cluster Service (again)<br />
systemctl stop pve-cluster</li>
<li>Reboot</li>
</ol>
</li>
</ol>
<p>The first time I did this the /etc/pve/cluster.conf and /etc/cluster/cluster.conf files did exist.&nbsp; Of course I&#8217;ve blown this up several times now, so I&#8217;ve come to realize that these files no longer exist.&nbsp; Execute the commands anyway (doesn&#8217;t hurt anything) and ignore the warnings that these two files cannot be found.</p>
<p>I did eventually get the cluster to connect the nodes and I did find that the Promox server quite conveniently shifted to the Datacenter console to manage both the nodes and the storage, which actually is quite convenient.&nbsp; Unfortunately unless both nodes are identical it&#8217;s not quite so simple to seamlessly move VMs around, but it does work quite well.</p>
<p>My fourth trial was to migrate VMs from my VMware ESXi host to Proxmox.&nbsp; The first one I selected was a VM called &#8216;Unifi Controller&#8217;.&nbsp; It&#8217;s a VM I no longer use, but it&#8217;s small making it relatively portable, and being that it&#8217;s no longer in use there was no danger of losing anything critical.</p>
<p>This ended up being quite the exercise.&nbsp; The space in the name caused a lot of problems.&nbsp; Exporting the VM from the VMware Web UI was no issue, nor uploading to Promox. The Debian OS had no trouble with it either, just making it /Unifi\ Controller/, but the &#8216;qm importovf&#8217; native to Proxmox couldn&#8217;t handle it, converting the space to %20 instead.&nbsp; Eventually I worked out that if I renamed the .ovf and .vmdk files to something else without a space, and edited the .ovf file to match the file names I&#8217;d already reset, then the &#8216;qm importovf&#8217; command was able to blast through the conversation from VMDK to RAW format and add the VM to the node.&nbsp; Obviously I did have to recreate the network config, but that was relatively easy and the VM came up without issue.</p>
<p>Convert the VMDK disk to RAW:<br />
qemu-img convert -f vmdk /pve-zfs/Unifi\ Controller-1.vmdk -O raw /pve-zfs/Unifi\ Controller/Unifi\ Controller-1.raw -p</p>
<p>Import the VM to Promox (after renaming the files to unificontroller.xxx):<br />
qm importovf 200 unificontroller.ovf pve-zfs</p>
<p>The problem with this process is the download/upload of the OVF from VMware.&nbsp; If you&#8217;re exporting a 1 TB server and you&#8217;re on a laptop with only 500 GiB storage, then you can&#8217;t get there from here.&nbsp; So the more logical approach is to import the OVF directly from ESXi to Proxmox, which turns out to be fairly easily done through a program called ovftool (VMware &#8211; download and install from their site to your Proxmox server):</p>
<p>ovftool &#8211;overwrite vi://192.168.1.5/FileServ /pve-zfs</p>
<p>I had to add &#8211;overwrite as this process has failed numerous times and when it does &#8211; you have to start over.</p>
<p>The syntax is easy:</p>
<ul>
<li>ovftool &#8211; command</li>
<li>&#8211;overwrite &#8211; option</li>
<li>vi://192.168.1.5/FileServ &#8211; virtual interface IP address of your ESXi host and /VM-Name</li>
<li>/pvs-zfs &#8211; the storage name you are importing to</li>
</ul>
<p>The only problem I have with this process is that it&#8217;s very slow.&nbsp; The VM must be shut down to execute the export/import and I&#8217;ve found this process on a 1 TB transfer can easily take a day.&nbsp; I&#8217;m going to keep trying to figure out if there&#8217;s a way to speed this up.&nbsp; If I do, I will document it here.</p>
<p>&nbsp;</p>
<p>The post <a href="https://catastrophe.wiredwolf.com/proxmox-post-1/">Proxmox &#8211; Post 1</a> appeared first on <a href="https://catastrophe.wiredwolf.com">Wiredwolf Canada</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
