so I wanted libguestfs-tools installed on proxmox to see if the tools that are there can help with migrating from ESXI. it wouldn't install directly so I went looking for another solution. here are the final details.
I started by installing a fresh Proxmox as a VM inside my actual proxmox. just to cover my ASSets.
tested on new server v4.0
apt-get update
apt-get install libguestfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libguestfs-tools : Depends: libguestfs0 (= 1:1.28.1-1) but it is not going to be installed
Depends: libguestfs-perl (= 1:1.28.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
as we can see libguestfs0 is the first problem.
apt-get install libguestfs0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libguestfs0 : Depends:qemu-system-x86but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
dpkg -l | grep qemu
ii pve-qemu-kvm 2.4-9 amd64 Full virtualization on x86 hardware
ii qemu-server 4.0-30 amd64 Qemu Server Tools
as we can see qemu-system-x86 is the whats holding us back. I did a little googling and found a script that helps with this.
http://ubuntuforums.org/showthread.php?t=636724
for the sake of keeping it easy
apt-get download libguestfs0
this is downloading the deb package to the current (root) directory. the actual package name that it downloaded was libguestfs0_1%3a1.28.1-1_amd64.deb
nano debcontrol
copy script into it and save it
chmod +x debcontrol
***************debcontrol script******************************
#!/bin/bash
EDITOR=nano
if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
if [[ -e "$OUTPUT" ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi
dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
echo DEBIAN/control not found.
rm -r "$TMPDIR"
exit 1
fi
CONTROL="$TMPDIR"/DEBIAN/control
MOD=`stat -c "%y" "$CONTROL"`
$EDITOR "$CONTROL"
if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
echo Not modfied.
else
echo Building new deb...
dpkg -b "$TMPDIR" "$OUTPUT"
fi
rm -r "$TMPDIR"
*********************************************************************
sh debcontrol libguestfs0_1%3a1.28.1-1_amd64.deb
modified Dependencies to replace qemu-system-x86 with pve-qemu-kvm
output was libguestfs0_1%3a1.28.1-1_amd64.modified.deb
cp libguestfs0_1%3a1.28.1-1_amd64.modfied.deb /var/cache/apt/archives/libguestfs0_1%3a1.28.1-1_amd64.deb
moved and renamed the files into /var/cache/apt/archives/libguestfs0_1%3a1.28.1-1_amd64.deb
dpkg -i /var/cache/apt/archives/libguestfs0_1%3a1.28.1-1_amd64.deb
manually installed the new package
apt-get -f install
note that mdadm will prompt you: I have said all because I was just testing to see if it worked
fix all remaining dependencies
apt-get install libguestfs-tools
install like normal
I don't know if this is the best way to do this, but now I'm going to start testing to see if there are any issues/long term effects on my actual server. if I have any issue I will report them as I find them.
Peter.
I started by installing a fresh Proxmox as a VM inside my actual proxmox. just to cover my ASSets.
tested on new server v4.0
apt-get update
apt-get install libguestfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libguestfs-tools : Depends: libguestfs0 (= 1:1.28.1-1) but it is not going to be installed
Depends: libguestfs-perl (= 1:1.28.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
as we can see libguestfs0 is the first problem.
apt-get install libguestfs0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libguestfs0 : Depends:qemu-system-x86but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
dpkg -l | grep qemu
ii pve-qemu-kvm 2.4-9 amd64 Full virtualization on x86 hardware
ii qemu-server 4.0-30 amd64 Qemu Server Tools
as we can see qemu-system-x86 is the whats holding us back. I did a little googling and found a script that helps with this.
http://ubuntuforums.org/showthread.php?t=636724
for the sake of keeping it easy
apt-get download libguestfs0
this is downloading the deb package to the current (root) directory. the actual package name that it downloaded was libguestfs0_1%3a1.28.1-1_amd64.deb
nano debcontrol
copy script into it and save it
chmod +x debcontrol
***************debcontrol script******************************
#!/bin/bash
EDITOR=nano
if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
if [[ -e "$OUTPUT" ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi
dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
echo DEBIAN/control not found.
rm -r "$TMPDIR"
exit 1
fi
CONTROL="$TMPDIR"/DEBIAN/control
MOD=`stat -c "%y" "$CONTROL"`
$EDITOR "$CONTROL"
if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
echo Not modfied.
else
echo Building new deb...
dpkg -b "$TMPDIR" "$OUTPUT"
fi
rm -r "$TMPDIR"
*********************************************************************
sh debcontrol libguestfs0_1%3a1.28.1-1_amd64.deb
modified Dependencies to replace qemu-system-x86 with pve-qemu-kvm
output was libguestfs0_1%3a1.28.1-1_amd64.modified.deb
cp libguestfs0_1%3a1.28.1-1_amd64.modfied.deb /var/cache/apt/archives/libguestfs0_1%3a1.28.1-1_amd64.deb
moved and renamed the files into /var/cache/apt/archives/libguestfs0_1%3a1.28.1-1_amd64.deb
dpkg -i /var/cache/apt/archives/libguestfs0_1%3a1.28.1-1_amd64.deb
manually installed the new package
apt-get -f install
note that mdadm will prompt you: I have said all because I was just testing to see if it worked
fix all remaining dependencies
apt-get install libguestfs-tools
install like normal
I don't know if this is the best way to do this, but now I'm going to start testing to see if there are any issues/long term effects on my actual server. if I have any issue I will report them as I find them.
Peter.