Currently Viewing Posts Tagged convert

Another way to move Virtualbox VDI to Proxmox VE

There is another way to do the importing Virtualbox VDI to Proxmox VE 3.5-8.

Similar to my previous post.

Step 1, Copy the VDI into the Proxmox VE host

No need to covert the VDI file to RAW format. Just copy the vdi file into the local folder. For me, I will just put it at /root/testing.vdi

Step 2, Create a new VM in Proxmox

On the “OS” tab, choose “Do not use any media”

On the “Hard Disk” tab, choose “local-lvm”, as storage, Disk size is any size you want, for example, 8GB. Format, choose “Raw disk image (raw)”, On CPU and Memory, choose the same as the Virtualbox settings.

Confirm to create the new VM.

Step 3, Detach and Remove the Hard Disk

Say my VM ID is 109, choose Virtual Machine 109, Hardware, Hard Disk, choose “Detach” button.

Detach the Hard Disk

At this point, the hard disk will be listed as “Unused Disk.” It still exists but is not attached to the system. To destroy it completely, select the Unused Disk and click Remove again; and confirm when prompted.

Continue reading “Another way to move Virtualbox VDI to Proxmox VE”

Move Virtualbox VDI to Proxmox VE System

I have some Virtualbox virtual machine on my desktop. Now I have Proxmox VE 5.3-8 installed on a separate machine. So I would like to move the VM to Proxmox.

Let me list the existing installation.

  • My Desktop, Windows 10 Pro version 1809.
  • Virtualbox 6.0.4 r128413
  • Guest VM inside of Virtualbox is Ubuntu 18.04 with 1G memory and 20GB disk space.
  • Proxmox VE 5.3-8, VM and LXC are stored in the local-lvm

 

Step 1, Located the vdi file and convert it to RAW format

Virtualbox vdi file location

Check the settings of the virtual machine, storage, and located the location of the vdi file. Mine is in the d:\Virtualbox VM\

Then open a command prompt window, enter the following command to convert the vdi file to raw image file.

d:
cd "program files\oracle\virtualbox"
vboxmanage clonehd --format RAW "d"\virtualbox vm\ubuntu 18.04 (122)\ubuntu 18.04.vdi" d:\testing.img

After a while the new image file is ready. The time depends on the size of your VM. Maybe 10 minutes or half an hour.

Converting

Continue reading “Move Virtualbox VDI to Proxmox VE System”

How to take a webpage screenshot at terminal window

The scenario is to run the program inside of Ubuntu VPS.  Input a URL the program will output the jpg file.

The solution is to use wkhtmltoimage, which is a part of wkhtmtopdf.

I used to use the old version wkhtmltopdf v0.12.3. Now it is not working anymore due to some reason I don’t know.

But the wkhtmltopdf v0.12.5  is OK.

The OS is Ubuntu 18.04.

Then I install wkhtmltopdf with the following command

sudo apt-get install -y software-properties-common
sudo apt-add-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main" 
sudo apt-get -yq update
sudo apt-get install -y libxrender1 libfontconfig1 libx11-dev libjpeg62 libxtst6 fontconfig xfonts-75dpi xfonts-base libpng12-0 libjpeg-turbo8
wget "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.xenial_amd64.deb" 
sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb 
sudo apt-get -f install

After installation, run the command to show the help of the program.

Continue reading “How to take a webpage screenshot at terminal window”

How to convert flac file to MP3 with FormatFactory

I use FormatFactory 3.8.0 to convert video files, audio files. It can also convert picture, such as jpg png ico, bmp, gif, tif, pcx, tga; and document, such as pdf, html mobi, EPub, AZW3.

Here I am talking about how to convert audio file, which is flac. I would like to convert it to mp3 and import it to iTunes. At the last, I will play it on my iPod shuffle.

The problem is I got the error 0x00000001.

flac2mp3-error

I have no idea what happened. Since FormatFactory gave the option to convert flac to mp3, why it can not do it.

Continue reading “How to convert flac file to MP3 with FormatFactory”

Solve the problem of ffmpeg on Dreamhost

I have an website which is hosted on Dreamhost.
I has a script to convert video from any formats to flv file, which can be played as flash video.
When I look at the error which made is shown as below.
ffmpeg unknown encoder mp3
It looks like mp3 audio is not supported by ffmpeg on Dreamhost. I think it is supported when I first write this script.
I checked the support history under Dreamhost control panel. The log said the account is moved to a new server last month. It may make something different.
OK. I google it and got the answer

Continue reading “Solve the problem of ffmpeg on Dreamhost”

FLV Video Quality

There are many video formats in computer world. Say MPG, WMV, AVI, MP4, The FLV is a video format played by flash player, which is installed almost 99% of computers all over the world.
Video quality of the different formats widely vary. MPG compression is quite bad, a thing from the past. Regular FLV, WMV and MP4 have a similar, decent quality/ filesize performance. Quicktime 7 introduced a superior new codec (H.264) in 2004, which is used in MP4 and MOV files. Flash Player 8 introduced a similar impressive new codec, the ON2 VP6. And the latest Windows Media (version 10) has the excellent VC-1 codec. What does this mean? If you use one of these newer codecs you get great video quality at small filesizes, but since the software is less widely adopted, it’s possible that your visitors first need to upgrade their plugin.
The only weak point of the flash player is that it solely supports its native FLV format, so you’ll have to convert your existing videos to the FLV format. MP4 support is on it’s way as well, but the required plugin version hasn’t spread yet.
To make a better quality of FLV video. The following instruction are suggested.
1) Rescale the source (720×540) to (480X360) or 320×240 to an uncompressed intermediate file.
2) Use the 2-pass VBR converter, use a keyframe for every 2 seconds (50 frames) for video with little motion up to a keyframe every half second (10 frames) for video with a lot of motion.
3) Bitrate for the video: 200 – 1000 kbps. Audio is set to 32, 64 or 96 kbps mp3. 32 for just speech, 96 for cool music.

Moving from ASP to PHP

I have a dream, mentioned in my Chinese Blog. I want to replce the current Windows 2003 server by a Linux server.
There are something to do before I move to Linux.
I am familiar with the Windows just like lots of other people who runs a Windows desktop.
Now for Server side, Linux, Bind, Apache, MySQL, postfix, and many server software are all running well.
The problem is I have to redesign my sites to PHP, MySQL. It is a big job.
It took me about 8 hours to convert G2Soft, main site of my Pentacle In-Out Board.
There are still some other sites I runing on this Windows server. I have to convert them one by one to a new site.

  • Archives